X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/58b10074ad79dde0abe6d2b95ee9b2c8fef633ba..90b29aa8080ffae08084cf556b45e05f9f2d3198:/lib-php/template/details-json.php?ds=sidebyside diff --git a/lib-php/template/details-json.php b/lib-php/template/details-json.php index 4edddca3..ae80a85b 100644 --- a/lib-php/template/details-json.php +++ b/lib-php/template/details-json.php @@ -1,4 +1,12 @@ array( (float) $aPointDetails['lon'], (float) $aPointDetails['lat'] ) ); -$aPlaceDetails['geometry'] = json_decode($aPointDetails['asgeojson']); +$aPlaceDetails['geometry'] = json_decode($aPointDetails['asgeojson'], true); $funcMapAddressLine = function ($aFull) { return array(