X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f50f46c1ce3fe44d8de55071d2fe1126ecb1d0ac..69f30e8e193b5be4b7fc6b504641e6d17fe1827b:/lib/template/address-geojson.php diff --git a/lib/template/address-geojson.php b/lib/template/address-geojson.php index 8ef5713b..089a86b6 100644 --- a/lib/template/address-geojson.php +++ b/lib/template/address-geojson.php @@ -33,7 +33,9 @@ if (empty($aPlace)) { $aFilteredPlaces['properties']['display_name'] = $aPlace['langaddress']; - if (isset($aPlace['aAddress'])) $aFilteredPlaces['properties']['address'] = $aPlace['aAddress']; + if (isset($aPlace['address'])) { + $aFilteredPlaces['properties']['address'] = $aPlace['address']->getAddressNames(); + } if (isset($aPlace['sExtraTags'])) $aFilteredPlaces['properties']['extratags'] = $aPlace['sExtraTags']; if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['properties']['namedetails'] = $aPlace['sNameDetails'];