]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
update block message
[nominatim.git] / website / search.php
index cd522c5771c0fdd536b097d59aeec4b445881e22..18b47e1ddc5d1bcb2dd9a0a833ba4b660e91557e 100755 (executable)
                $oGeocode->setIncludePolygonAsSVG($bAsSVG);
        }
 
                $oGeocode->setIncludePolygonAsSVG($bAsSVG);
        }
 
+       // Polygon simplification threshold (optional)
+       $fThreshold = 0.0;
+       if (isset($_GET['polygon_threshold'])) $fThreshold = (float)$_GET['polygon_threshold'];
+       $oGeocode->setPolygonSimplificationThreshold($fThreshold);
+
        $oGeocode->loadParamArray($_GET);
 
        if (CONST_Search_BatchMode && isset($_GET['batch']))
        $oGeocode->loadParamArray($_GET);
 
        if (CONST_Search_BatchMode && isset($_GET['batch']))