Routing - avoid a polygon

Dev 216 Reputation points
2021-11-05T16:08:02.227+00:00

For routing is it possible to calculate a route that avoids a particular polygon area?

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
721 questions
0 comments No comments
{count} votes

Accepted answer
  1. rbrundritt 18,076 Reputation points Microsoft Employee
    2021-11-05T18:51:46.207+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.