X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c3788d765ed4e7ddf00794085af757714bc102cf..6f3339cc498592850218f8fc714dd45d66cd1815:/lib-php/template/search-geojson.php diff --git a/lib-php/template/search-geojson.php b/lib-php/template/search-geojson.php index f517142f..7665700d 100644 --- a/lib-php/template/search-geojson.php +++ b/lib-php/template/search-geojson.php @@ -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',