X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e52ee350618d8cbbe2ab147bfb2cef6507d6e12e..9afebddb16b09e09fa9a74624dcd79475b476f10:/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'])) {