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