X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b8d41cf38cb9abead17f53fc42c28b65e0ae62b7..f289db9bfe21c5a725e751be98e2b824026e2310:/lib-php/template/search-geocodejson.php?ds=sidebyside diff --git a/lib-php/template/search-geocodejson.php b/lib-php/template/search-geocodejson.php index 5439e3cf..bba41a0d 100644 --- a/lib-php/template/search-geocodejson.php +++ b/lib-php/template/search-geocodejson.php @@ -46,7 +46,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',