]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-geojson.php
first draft
[nominatim.git] / lib / template / search-geojson.php
index 0d04ddc70371b745a650eb2bed5cfee16de678ef..0847fba411b6713d2ea33fae56a42a2a7a8f4f82 100644 (file)
@@ -41,8 +41,8 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
         $aPlace['properties']['icon'] = $aPointDetails['icon'];
     }
 
-    if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) {
-        $aPlace['properties']['address'] = $aPointDetails['address'];
+    if (isset($aPointDetails['address'])) {
+        $aPlace['properties']['address'] = $aPointDetails['address']->getAddressNames();
     }
 
     if (isset($aPointDetails['asgeojson'])) {