X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/efafa5271957fb54b356ec1c90e8613f14de40d4..dddfa3a075f11145432b69ec053f8145dce9612b:/lib-php/template/address-geojson.php diff --git a/lib-php/template/address-geojson.php b/lib-php/template/address-geojson.php index 206b959f..dc3c3832 100644 --- a/lib-php/template/address-geojson.php +++ b/lib-php/template/address-geojson.php @@ -65,7 +65,7 @@ if (empty($aPlace)) { } if (isset($aPlace['asgeojson'])) { - $aFilteredPlaces['geometry'] = json_decode($aPlace['asgeojson']); + $aFilteredPlaces['geometry'] = json_decode($aPlace['asgeojson'], true); } else { $aFilteredPlaces['geometry'] = array( 'type' => 'Point',