<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using complex polygon barriers for Area A exceed REST API limits in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-complex-polygon-barriers-for-area-a-exceed/m-p/1130713#M4037</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P data-unlink="true"&gt;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 &lt;A href="https://en.wikipedia.org/wiki/West_Bank_Areas_in_the_Oslo_II_Accord" target="_blank" rel="noopener"&gt;Area A&lt;/A&gt; territories. In order to achieve that, we are trying to use polygon barriers provided by &lt;A href="https://tapash-mnz.opendata.arcgis.com/datasets/a-b-c-%D7%90%D7%96%D7%95%D7%A8/explore?filters=eyJFWk9SIjpbNiw2XX0%3D&amp;amp;location=31.974180%2C35.653603%2C9.59" target="_self"&gt;this&lt;/A&gt; feature server (which does not belong to us) which can be queried from &lt;A href="https://services7.arcgis.com/LNelXmPD58p66zmN/arcgis/rest/services/ABCarea/FeatureServer/0/query?where=EZOR%3D6&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;returnGeodetic=false&amp;amp;outFields=OBJECTID&amp;amp;returnGeometry=true&amp;amp;returnCentroid=false&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=4326&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;having=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;quantizationParameters=&amp;amp;sqlFormat=none&amp;amp;f=html&amp;amp;token=" target="_blank" rel="noopener"&gt;this&lt;/A&gt;&amp;nbsp;page.&lt;/P&gt;&lt;P data-unlink="true"&gt;Polygon barriers are specified as URL (which produces this &lt;A href="https://services7.arcgis.com/LNelXmPD58p66zmN/arcgis/rest/services/ABCarea/FeatureServer/0/query?where=EZOR%3D6&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;returnGeodetic=false&amp;amp;outFields=OBJECTID&amp;amp;returnGeometry=true&amp;amp;returnCentroid=false&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=4326&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;having=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;quantizationParameters=&amp;amp;sqlFormat=none&amp;amp;f=pjson&amp;amp;token=" target="_blank" rel="noopener"&gt;JSON&lt;/A&gt;), not as a features collection. But the issue here is that it exceeds limits of abovementioned REST APIs with error message:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The number of street features affected by PolygonBarriers has exceeded the limit of 2000 allowed by the service.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Even a single barrier representing Bethlehem city (object id = 188) exceeds this limit.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Is there any way to overcome the limits? Or maybe other solutions to avoid Area A in REST APIs?&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 08:14:25 GMT</pubDate>
    <dc:creator>Strelbitskyi_Shift</dc:creator>
    <dc:date>2022-01-05T08:14:25Z</dc:date>
    <item>
      <title>Using complex polygon barriers for Area A exceed REST API limits</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-complex-polygon-barriers-for-area-a-exceed/m-p/1130713#M4037</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P data-unlink="true"&gt;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 &lt;A href="https://en.wikipedia.org/wiki/West_Bank_Areas_in_the_Oslo_II_Accord" target="_blank" rel="noopener"&gt;Area A&lt;/A&gt; territories. In order to achieve that, we are trying to use polygon barriers provided by &lt;A href="https://tapash-mnz.opendata.arcgis.com/datasets/a-b-c-%D7%90%D7%96%D7%95%D7%A8/explore?filters=eyJFWk9SIjpbNiw2XX0%3D&amp;amp;location=31.974180%2C35.653603%2C9.59" target="_self"&gt;this&lt;/A&gt; feature server (which does not belong to us) which can be queried from &lt;A href="https://services7.arcgis.com/LNelXmPD58p66zmN/arcgis/rest/services/ABCarea/FeatureServer/0/query?where=EZOR%3D6&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;returnGeodetic=false&amp;amp;outFields=OBJECTID&amp;amp;returnGeometry=true&amp;amp;returnCentroid=false&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=4326&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;having=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;quantizationParameters=&amp;amp;sqlFormat=none&amp;amp;f=html&amp;amp;token=" target="_blank" rel="noopener"&gt;this&lt;/A&gt;&amp;nbsp;page.&lt;/P&gt;&lt;P data-unlink="true"&gt;Polygon barriers are specified as URL (which produces this &lt;A href="https://services7.arcgis.com/LNelXmPD58p66zmN/arcgis/rest/services/ABCarea/FeatureServer/0/query?where=EZOR%3D6&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;returnGeodetic=false&amp;amp;outFields=OBJECTID&amp;amp;returnGeometry=true&amp;amp;returnCentroid=false&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=4326&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;having=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;quantizationParameters=&amp;amp;sqlFormat=none&amp;amp;f=pjson&amp;amp;token=" target="_blank" rel="noopener"&gt;JSON&lt;/A&gt;), not as a features collection. But the issue here is that it exceeds limits of abovementioned REST APIs with error message:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The number of street features affected by PolygonBarriers has exceeded the limit of 2000 allowed by the service.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Even a single barrier representing Bethlehem city (object id = 188) exceeds this limit.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Is there any way to overcome the limits? Or maybe other solutions to avoid Area A in REST APIs?&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 08:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-complex-polygon-barriers-for-area-a-exceed/m-p/1130713#M4037</guid>
      <dc:creator>Strelbitskyi_Shift</dc:creator>
      <dc:date>2022-01-05T08:14:25Z</dc:date>
    </item>
  </channel>
</rss>

