Yes, the POST API of the Azure Maps route service allows you to pass in a MultiPolygon into the body of the request that contains one or more (max 10) polygons to avoid: https://learn.microsoft.com/en-us/rest/api/maps/route/post-route-directions#request-body However, the individual polygons have to be rectangles.
Routing - avoid a polygon
Dev
216
Reputation points
For routing is it possible to calculate a route that avoids a particular polygon area?
Accepted answer
-
rbrundritt 18,076 Reputation points Microsoft Employee
2021-11-05T18:51:46.207+00:00