Hi, i'm using the following Route Service example:
I've managed to get the example to work for US data pointing to this North America service:
https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve
I'm now trying to use UK geometry, but obviously this is failing for North America data! The input points are not within the data coverage area.
What is the corresponding url for the European Route Service so that i can perform a solve query?
Also, i'm using a debLabs token to get to the NAServer, will this work for European data too, or do i need to generate a different token?
thanks
Scott
The service is applicable for all the countries that are listed here:
Network analysis coverage—ArcGIS REST API: Directions and Routing Services | ArcGIS for Developers
So it should work fine. Could you share your code that shows what is failing?
Hi Noah Sager, i'm using the code that was listed on the website example above.
https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?<PARAMETERS>
I''ve tested the full example for North America and it works ok, obviously adding in a real token at the end.
https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve? stops=%7B%22features%22:%5B%7B%22geometry%22:%7B%22x%22:-122.473948,%22y%22:37.7436%7D, %22attributes%22:%7B%22Name%22:%22Office%22, %22Attr_TravelTime%22:0%7D%7D,%7B%22geometry%22:%7B%22x%22:-122.439613,%22y%22:37.746144%7D, %22attributes%22:%7B%22Name%22:%22Store%201%22, %22Attr_TravelTime%22:25%7D%7D,%7B%22geometry%22:%7B%22x%22:-122.488254,%22y%22:37.754092%7D, %22attributes%22:%7B%22Name%22:%22Store%202%22, %22Attr_TravelTime%22:20%7D%7D,%7B%22geometry%22:%7B%22x%22:-122.44915,%22y%22:37.731837%7D, %22attributes%22:%7B%22Name%22:%22Store%203%22, %22Attr_TravelTime%22:30%7D%7D,%7B%22geometry%22:%7B%22x%22:-122.46441,%22y%22:37.774756%7D, %22attributes%22:%7B%22Name%22:%22Store%204%22, %22Attr_TravelTime%22:25%7D%7D,%7B%22geometry%22:%7B%22x%22:-122.426896,%22y%22:37.769352%7D, %22attributes%22:%7B%22Name%22:%22Store%205%22, %22Attr_TravelTime%22:20%7D%7D,%7B%22geometry%22:%7B%22x%22:-122.473948,%22y%22:37.7436%7D, %22attributes%22:%7B%22Name%22:%22Office%22,%22Attr_TravelTime%22:0%7D%7D%5D%7D&findBestSequence=true& preserverFirstStop=true&preserveLastStop=true&returnStops=true&returnDirections=true &returnRoutes=true&f=json&token=<yourToken>
I have then taken the above example and added in my own Geometry, for UK points (again, with a real token at the end).
https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?stops=%7B%22fea...
But i get the following error message:
{ "error": { "code": 400, "extendedCode": -2147200939, "message": "Unable to complete operation.", "details": [ "The input points are not within the data coverage area." ] } }
So i assume that the Rest Service i'm pointing to only covers NA data, hence why i wondered if there is a Rest url i should be using for European data.
Either that or my new input points are wrong? I'm projecting my eastling and northing data to 102100 Web Mercator.
thanks
Sorry, I'm not sure what the issue is with the request, but here is a working sample that uses the RouteTask and the same service.
"https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"
UK RouteTask Sample: