]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-jsonv2.php
if doing structured query limit the types of osm place returned
[nominatim.git] / lib / template / search-jsonv2.php
index 2b8c2c28d2e982e8ebbb0041cf6255345c37d333..671edde4b8fcaafcbf4e3f7bb53fa9fed32bb028 100644 (file)
@@ -36,7 +36,7 @@
                $aPlace['lat'] = $aPointDetails['lat'];
                $aPlace['lon'] = $aPointDetails['lon'];
                $aPlace['display_name'] = $aPointDetails['name'];
-               $aPlace['place_rank'] = $aResult['rank_search'];
+               $aPlace['place_rank'] = $aPointDetails['rank_search'];
 
                $aPlace['category'] = $aPointDetails['class'];
                $aPlace['type'] = $aPointDetails['type'];