X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b86d5c6a42624708af4e57121caf5cc02241544f..095dbe671880a9457960295425300e054feb6a1a:/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);