]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-jsonv2.php
give www-data select rights on query_log
[nominatim.git] / lib / template / search-jsonv2.php
index fa801ac497585ddfda7d7e9a7e0d2b5a16dd35fd..2b8c2c28d2e982e8ebbb0041cf6255345c37d333 100644 (file)
                        $aPlace['address'] = $aPointDetails['address'];
                 }
 
+                if (isset($aResult['asgeojson']))
+                {
+                       $aPlace['geojson'] = json_decode($aResult['asgeojson']);
+                }
+
+                if (isset($aResult['assvg']))
+                {
+                       $aPlace['svg'] = $aResult['assvg'];
+                }
+
+                if (isset($aResult['astext']))
+                {
+                        $aPlace['geotext'] = $aResult['astext'];
+                }
+
+                if (isset($aResult['askml']))
+                {
+                        $aPlace['geokml'] = $aResult['askml'];
+                }
+
                $aFilteredPlaces[] = $aPlace;
        }
 
-       javascript_renderData($aFilteredPlaces);
+       javascript_renderData($aFilteredPlaces, array('geojson'));