Using complex polygon barriers for Area A exceed REST API limits

399
0
01-05-2022 12:14 AM
Strelbitskyi_Shift
New Contributor

Hi all,

We are using REST API to get distance matrices (sync and async APIs) and routes (sync API). Routes are built for Israeli customers, and there is a requirement to avoid Area A territories. In order to achieve that, we are trying to use polygon barriers provided by this feature server (which does not belong to us) which can be queried from this page.

Polygon barriers are specified as URL (which produces this JSON), not as a features collection. But the issue here is that it exceeds limits of abovementioned REST APIs with error message:

The number of street features affected by PolygonBarriers has exceeded the limit of 2000 allowed by the service.

Even a single barrier representing Bethlehem city (object id = 188) exceeds this limit.

The attempts were made to overcome the limits by manually manipulating JSON - but even if we could manage to do it, the resulting JSON would be too large to use in GET query string for sync APIs.

Is there any way to overcome the limits? Or maybe other solutions to avoid Area A in REST APIs?

Thanks 🙂

 

0 Kudos
0 Replies