]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-json.php
Merge branch 'fix-getcol-zero' of https://github.com/eyusupov/Nominatim into eyusupov...
[nominatim.git] / lib / template / search-json.php
index 30817c04025114210eb49e0649d6bf123d07ca68..6108aca4e005582d9446a75ca44737a0ab0ae5c3 100644 (file)
@@ -44,8 +44,8 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
         $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'])) {