X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1d0da944a66924960eb48f2225d4717c28006cea..7a964efb3a104e304be7620dc18fa123559f05c8:/lib/template/search-json.php diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 7c87f636..30817c04 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -27,9 +27,10 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) { $aPlace['lat'] = $aPointDetails['lat']; $aPlace['lon'] = $aPointDetails['lon']; + $aPlace['display_name'] = $aPointDetails['name']; - if ($sOutputFormat == 'jsonv2') { + if ($sOutputFormat == 'jsonv2' || $sOutputFormat == 'geojson') { $aPlace['place_rank'] = $aPointDetails['rank_search']; $aPlace['category'] = $aPointDetails['class']; } else {