]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/search-json.php
add typing information to DB properties
[nominatim.git] / lib-php / template / search-json.php
index 3f9e0a571d9928bc1a0fbdc298c90a1134537fc3..5fb1302080ac4ced5cebb5523a1257755b04ccbe 100644 (file)
@@ -53,7 +53,7 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
     }
 
     if (isset($aPointDetails['asgeojson'])) {
-        $aPlace['geojson'] = json_decode($aPointDetails['asgeojson']);
+        $aPlace['geojson'] = json_decode($aPointDetails['asgeojson'], true);
     }
 
     if (isset($aPointDetails['assvg'])) {