amandus
November 9, 2021, 12:17pm
5
Hi @JerryPapada ,
take a look at this example using avoid_polygons
.
Both GeoJSON Polygons and MultiPolygons are supported and has to be passed in the options
parameter like:
...,options={
"avoid_polygons": {
"type": "Polygon",
"coordinates": [
...
]
}
There are some restrictions to them though:
Hi @UliE ,
The restrictions are not related to the number of polygons but to their area which can be a maximum of 200.000 square kilometers. (there is another restriction where you can’t pass really thin and long polygons e.g. 0.002 x 100.000.000 km rectangles as this would slow processing down)
It is sufficient to place a small avoid polygon on top of a way segment for it to be avoided.
[grafik]
I think your Multipolygon is not properly formatted.
make sure to not use these quotes “coordi…
Best regards