]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
for search,details in format=HTML return geometry in geojson, not wkt. No longer...
[nominatim.git] / website / search.php
index 5beb659d510ff7ee7e03e3ed54730750fea89f3f..f2f806d6aede0caa1d77a8ac4bfd6388cbe2952c 100755 (executable)
@@ -30,8 +30,8 @@ $sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2
 
 // Show / use polygons
 if ($sOutputFormat == 'html') {
-    $oGeocode->setIncludePolygonAsText($oParams->getBool('polygon'));
-    $bAsText = false;
+    $oGeocode->setIncludePolygonAsGeoJSON($oParams->getBool('polygon_geojson'));
+    $bAsGeoJSON = false;
 } else {
     $bAsPoints = $oParams->getBool('polygon');
     $bAsGeoJSON = $oParams->getBool('polygon_geojson');