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