X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/924d3a8d6e9d5557f5d0d7b0f22f49a0d524a768..1e3bf9729eae72f7b5c1a71ad952877486a0fcdb:/website/search.php diff --git a/website/search.php b/website/search.php index 5beb659d..f2f806d6 100755 --- a/website/search.php +++ b/website/search.php @@ -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');