]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/address-geojson.php
Main tag information added to geocodejson in reverse geocoding
[nominatim.git] / lib-php / template / address-geojson.php
index 206b959f2261a1b329ef3279a01afb205f6a0111..dc3c3832af7ce09fc32be88df4d5ab9d02256d4b 100644 (file)
@@ -65,7 +65,7 @@ if (empty($aPlace)) {
     }
 
     if (isset($aPlace['asgeojson'])) {
     }
 
     if (isset($aPlace['asgeojson'])) {
-        $aFilteredPlaces['geometry'] = json_decode($aPlace['asgeojson']);
+        $aFilteredPlaces['geometry'] = json_decode($aPlace['asgeojson'], true);
     } else {
         $aFilteredPlaces['geometry'] = array(
                                         'type' => 'Point',
     } else {
         $aFilteredPlaces['geometry'] = array(
                                         'type' => 'Point',