X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f50f46c1ce3fe44d8de55071d2fe1126ecb1d0ac..411f361fcb11824ca72dc61b85baeb32b91f474a:/lib/template/search-geojson.php?ds=sidebyside 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'])) {