X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f50f46c1ce3fe44d8de55071d2fe1126ecb1d0ac..2d7441f381c0ecd2b110b4af47fd9003c7d46773:/lib/template/search-geojson.php 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'])) {