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