X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c3788d765ed4e7ddf00794085af757714bc102cf..3e6be0b0be11cb2f398b2fccca91fa502b1a1f51:/lib-php/template/details-json.php 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(