X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4b0d9f71e80a251b4594f73f2eec05d1c411a3c7..1bee151fe3ccfd21df1d809392d6eb52ce7925cb:/lib-php/template/address-geocodejson.php?ds=sidebyside 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',