X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a35eda3d2a14614d279d73ed3d05229fa1a4c3de..018ef5bd539d1b6396dea953e1b6bc920538b132:/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',