X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f50f46c1ce3fe44d8de55071d2fe1126ecb1d0ac..e52ee350618d8cbbe2ab147bfb2cef6507d6e12e:/lib/template/search-geocodejson.php?ds=sidebyside diff --git a/lib/template/search-geocodejson.php b/lib/template/search-geocodejson.php index 25299716..6f822799 100644 --- a/lib/template/search-geocodejson.php +++ b/lib/template/search-geocodejson.php @@ -35,8 +35,8 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) { ); foreach ($aFieldMappings as $sFrom => $sTo) { - if (isset($aPointDetails['aAddress'][$sFrom])) { - $aPlace['properties']['geocoding'][$sTo] = $aPointDetails['aAddress'][$sFrom]; + if (isset($aPointDetails['address'][$sFrom])) { + $aPlace['properties']['geocoding'][$sTo] = $aPointDetails['address'][$sFrom]; } }