]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-batch-json.php
fix variable name in setup --drop
[nominatim.git] / lib / template / search-batch-json.php
index 09ea48b63bdbc2a964ac4134de5fcd0d43084dfb..40b27a72e9dc9b607f4de61756b9bc335c6ce7e3 100644 (file)
@@ -49,8 +49,8 @@ foreach ($aBatchResults as $aSearchResults) {
             $aPlace['icon'] = $aPointDetails['icon'];
         }
 
-        if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])>0) {
-            $aPlace['address'] = $aPointDetails['address'];
+        if (isset($aPointDetails['address'])) {
+            $aPlace['address'] = $aPointDetails['address']->getAddressNames();
         }
 
         if (isset($aPointDetails['asgeojson'])) {