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