X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/efafa5271957fb54b356ec1c90e8613f14de40d4..ebe489c22702a9b5d8116b725c1fcb7fbe839c2d:/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 68a0ce25..ae80a85b 100644 --- a/lib-php/template/details-json.php +++ b/lib-php/template/details-json.php @@ -48,7 +48,7 @@ $aPlaceDetails['centroid'] = array( 'coordinates' => 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(