]> git.openstreetmap.org Git - nominatim.git/commitdiff
jsonv2 returns wrong place_rank
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Wed, 5 Dec 2012 15:34:27 +0000 (15:34 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Wed, 5 Dec 2012 15:34:27 +0000 (15:34 +0000)
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'];