From: Brian Quinion Date: Wed, 5 Dec 2012 15:34:27 +0000 (+0000) Subject: jsonv2 returns wrong place_rank X-Git-Tag: v2.2.0~172 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/bde251f2a244b87334528f0b01281f8bd96d1ebf jsonv2 returns wrong place_rank --- diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 2b8c2c28..671edde4 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -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'];