X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/adb6ea546ff420a9b68deed77edd5e900c93833a..8e79ece20344d7338526c55b5a533250c4157005:/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');