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