I couldn’t find a clear answer to this question on the ESRI site, so I’m hoping someone from ESRI can respond here.
Does the use of any of the geometry operators consume credits or result in any charges to our organization?
If not, why is a token required to run examples like the one in this tutorial on our own server?
https://developers.arcgis.com/javascript/latest/tutorials/find-spatial-relationships/
Solved! Go to Solution.
The client side geometry operators don't use credits but the basemap used in that Tutorial does. If you remove the script setting the apiKey and set the basemap to something like topo-vector (requires some sort of enterprise or agol license) the tutorial will work. https://codepen.io/sagewall/pen/vEEWqrg?editors=1000
Hey @LefterisKoumis
I may not be from ESRI, but the use of the geometry operators does not directly consume any credits or cause any charges in your organization. The reason that the API key is used is because you're using ArcGIS Services, these services are contained behind token access because it would be a business problem to allow unauthenticated access to be able to make these calculations. Since it's on your own server, it may need an AGOL token to use AGOL resources, but these require authorization rather than credits.
I've used the geometry services and the GeometryEngine avoids the server-side calls, if someone wants to correct me please do!
Here in this link the first paragraph mentions that this is client-side as well:
https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/
Cody
The client side geometry operators don't use credits but the basemap used in that Tutorial does. If you remove the script setting the apiKey and set the basemap to something like topo-vector (requires some sort of enterprise or agol license) the tutorial will work. https://codepen.io/sagewall/pen/vEEWqrg?editors=1000