]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-batch-json.php
Merge pull request #1258 from lonvia/cleanup-utils
[nominatim.git] / lib / template / search-batch-json.php
index 513f3c2b8833a8ea6a20617aa9e961ca47ea6ea2..40b27a72e9dc9b607f4de61756b9bc335c6ce7e3 100644 (file)
@@ -49,8 +49,8 @@ foreach ($aBatchResults as $aSearchResults) {
             $aPlace['icon'] = $aPointDetails['icon'];
         }
 
-        if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) {
-            $aPlace['address'] = $aPointDetails['address'];
+        if (isset($aPointDetails['address'])) {
+            $aPlace['address'] = $aPointDetails['address']->getAddressNames();
         }
 
         if (isset($aPointDetails['asgeojson'])) {