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