X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7a964efb3a104e304be7620dc18fa123559f05c8..aed9d9c85e30b45f3e0ce4d9e3639b8ab0875e77:/lib/template/search-geojson.php?ds=inline diff --git a/lib/template/search-geojson.php b/lib/template/search-geojson.php index 0d04ddc7..0847fba4 100644 --- a/lib/template/search-geojson.php +++ b/lib/template/search-geojson.php @@ -41,8 +41,8 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) { $aPlace['properties']['icon'] = $aPointDetails['icon']; } - if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) { - $aPlace['properties']['address'] = $aPointDetails['address']; + if (isset($aPointDetails['address'])) { + $aPlace['properties']['address'] = $aPointDetails['address']->getAddressNames(); } if (isset($aPointDetails['asgeojson'])) {