X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e52ee350618d8cbbe2ab147bfb2cef6507d6e12e..8ac36e2e18a8b2260251ea3f1e869dafb2ebe2eb:/lib/template/address-geojson.php?ds=sidebyside 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'];