X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fa1f23edfbd0672ae430722152314ecc69615b56..b42939a3249e73027516eb6e79a9f1f8c642ff95:/lib/template/address-json.php diff --git a/lib/template/address-json.php b/lib/template/address-json.php index 0a1d074a..2f077818 100644 --- a/lib/template/address-json.php +++ b/lib/template/address-json.php @@ -21,7 +21,7 @@ if (isset($aPlace['lat'])) $aFilteredPlaces['lat'] = $aPlace['lat']; if (isset($aPlace['lon'])) $aFilteredPlaces['lon'] = $aPlace['lon']; $aFilteredPlaces['display_name'] = $aPlace['langaddress']; - if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aAddress; + if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aPlace['aAddress']; } javascript_renderData($aFilteredPlaces);