From: Sarah Hoffmann Date: Mon, 23 Jul 2012 21:34:13 +0000 (+0200) Subject: send place_rank in jsonv2 format X-Git-Tag: v2.0.0~41 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/fe7137990b0693c6b045800750d879203fdc965d send place_rank in jsonv2 format --- diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 095bfb79..89479dfb 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -36,6 +36,7 @@ $aPlace['lat'] = $aPointDetails['lat']; $aPlace['lon'] = $aPointDetails['lon']; $aPlace['display_name'] = $aPointDetails['name']; + $aPlace['place_rank'] = $aResult['rank_search']; $aPlace['category'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type'];