]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/details-json.php
Correction to PR's comment
[nominatim.git] / lib-php / template / details-json.php
index 68a0ce25b82d285a5cd75aeef043a831b335d82a..ae80a85b262a205b108c5d58526a920213200b61 100644 (file)
@@ -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(