X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f50f46c1ce3fe44d8de55071d2fe1126ecb1d0ac..92f86de938fcb2fb18b22531bf491512e5b8c190:/lib/template/search-geocodejson.php 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]; } }