X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b4fec57b6d53f8e8a45c46ff11f13cbcbea1006a..3cc3e3b2e319c9db92da2efdefec2672780c5df9:/lib-php/template/search-geojson.php?ds=sidebyside 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',