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