X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/27af9b102c2d6167b9025d594f8cb75e4dd76a03..d22ca186e4d388c228e90e1e701452c041a34687:/lib-php/template/search-json.php?ds=inline diff --git a/lib-php/template/search-json.php b/lib-php/template/search-json.php index 6f729c29..5fb13020 100644 --- a/lib-php/template/search-json.php +++ b/lib-php/template/search-json.php @@ -1,4 +1,12 @@ $aPointDetails) { @@ -45,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'])) {