Hi I have been asked to add a routing service to a json config file for a third party JS app. We don't have a routing service on our AGS/Portal so I think using the one from Esri is the best path at this time.
Looks like that url should be:
https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World
I know that it is going to use AGOL credits but I am not sure how to wire it up to our organization's account.
The json sample the vendor provided is:
"routing": {
"url": "",
"distanceFormat": "esriKilometers"
},