X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f50f46c1ce3fe44d8de55071d2fe1126ecb1d0ac..c5fe2ac2067c7154370c3abd6ccca45b0d657547:/lib/template/address-json.php?ds=sidebyside diff --git a/lib/template/address-json.php b/lib/template/address-json.php index b620c63e..691d6a74 100644 --- a/lib/template/address-json.php +++ b/lib/template/address-json.php @@ -32,7 +32,9 @@ if (empty($aPlace)) { $aFilteredPlaces['display_name'] = $aPlace['langaddress']; - if (isset($aPlace['aAddress'])) $aFilteredPlaces['address'] = $aPlace['aAddress']; + if (isset($aPlace['address'])) { + $aFilteredPlaces['address'] = $aPlace['address']->getAddressNames(); + } if (isset($aPlace['sExtraTags'])) $aFilteredPlaces['extratags'] = $aPlace['sExtraTags']; if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['namedetails'] = $aPlace['sNameDetails'];