]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-geocodejson.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib / template / search-geocodejson.php
index 252997169d548d0731ed1d437d5f243a01eb1591..6f822799dbc0161eaacfc0ae3b5a956e3142f498 100644 (file)
@@ -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];
         }
     }