]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/address-geocodejson.php
Update DB.php
[nominatim.git] / lib-php / template / address-geocodejson.php
index 8a0a6289a9697a9a3a5c84ecb95c3224875ad02e..d54aef4005b26f843d890641f68e74aac5774bd7 100644 (file)
@@ -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',