Is there a way to exclude a rectangle (or any other shape) area from the routing?

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:

Best regards