X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e52ee350618d8cbbe2ab147bfb2cef6507d6e12e..38fb71eaa47175097589efc5e7b39cc20de3e51b:/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'];