X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/27af9b102c2d6167b9025d594f8cb75e4dd76a03..ff3230a7f3fcb314c22ab977fa014465ff274ec8:/lib-php/template/search-geojson.php diff --git a/lib-php/template/search-geojson.php b/lib-php/template/search-geojson.php index c0ca625c..7665700d 100644 --- a/lib-php/template/search-geojson.php +++ b/lib-php/template/search-geojson.php @@ -1,4 +1,12 @@ $aPointDetails) { @@ -46,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',