I am trying to follow Esri documentation and create an "item" in ArcGIS Online consisting of the ArcGIS World Routing Service, so that I can have some control over the service's use: I have stored credentials for a particular user and limited the credits the service can use. This is all described in this documentation written by @Scott_atEsri ; unfortunately it is from 11 years ago:
https://www.esri.com/arcgis-blog/products/arcgis-online/transportation/public-access-to-arcgis-online-routing-and-traffic-services
I want to use my AGOL "item" (the world routing service) in a third-party web app, used by staff in my organization for routing. So I need to figure out the URL I should use in this application to connect to my AGOL "item."
My question is: The above documentation says to use the URL labeled as "ArcGIS Web API REST Connection," which is shown on the item's Item Details page. The problem is that since this documentation is from 11 years ago, much has changed in AGOL, and I do not see anything like that now. There is the item URL at the bottom of the Item Details page, but it is simply the standard, generic URL for the world routing service (see screenshot below). I am afraid that if I use this URL in my app, the app will use the routing service from the source, and it will have zero connection to my AGOL "item" and therefore not pay attention to the credit usage limit I have set for the routing service. Do you know what I mean? Like, I would think that my AGOL item for the routing service would have a unique URL that would tell the app to use my specific connection to the routing service (like a URL that includes a string of random letters and numbers, like all other items I create in AGOL), but this appears to not be the case.
In other words, isn't it pointless to create this Routing Service item in AGOL if my third-party app will have to just use the standard routing service URL (https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World), which presumably leads the app to NOT connect to my AGOL item where I have configured credit limits?
Scott Sandusky, would you be able to provide any insight?
thank you for reading!!
My AGOL item's URL:
