X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7a964efb3a104e304be7620dc18fa123559f05c8..def573d7b4167b74437ec564922a35a33b93fea7:/lib/template/address-json.php 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'];