]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/search-geojson.php
consolidate indexes over geometry_sectors
[nominatim.git] / lib-php / template / search-geojson.php
index f517142f861b9848dd9797761b4a8a388e1b1e1c..7665700dff47b08995f517432a74de506521fdfc 100644 (file)
@@ -54,7 +54,7 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
     }
 
     if (isset($aPointDetails['asgeojson'])) {
-        $aPlace['geometry'] = json_decode($aPointDetails['asgeojson']);
+        $aPlace['geometry'] = json_decode($aPointDetails['asgeojson'], true);
     } else {
         $aPlace['geometry'] = array(
                                'type' => 'Point',