X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4b0d9f71e80a251b4594f73f2eec05d1c411a3c7..cd4bcea8945d95a43f1e1cb078656c7b452a74ea:/lib-php/template/address-geocodejson.php diff --git a/lib-php/template/address-geocodejson.php b/lib-php/template/address-geocodejson.php index 8a0a6289..d54aef40 100644 --- a/lib-php/template/address-geocodejson.php +++ b/lib-php/template/address-geocodejson.php @@ -56,7 +56,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',