shaun_weston-eagle-co-nz-esridist

Network Analysis Services

Discussion created by shaun_weston-eagle-co-nz-esridist on May 12, 2013
Latest reply on May 12, 2013 by shaun_weston-eagle-co-nz-esridist
I'm trying to start do some testing around the network analysis services and have looked at the documentation around this and done the following to try get access to the closest facility service:

- We have an ArcGIS Online subscription for Organisations
- Request a token to the service by doing the following request - https://www.arcgis.com/sharing/generateToken?username=username&password=password&referer=webserver&expiration=15&f=json
- This returns a token to use
- I've then tried to test this token from the webserver using either this - http://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World?token=dUD1J1pvQ0oJUXNBQzvqlAEVmI1STdi3N8TeKZI8mEazUO8EAgbuvIptX3b1U-TY2HNDeReBJPCqGQYp416l6ntFbL9AtE6irJw8c36qJfqqzM5FFFwIicijZTnkPE-M
or
this - http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=yjijnwM3idouiboFnxc9kdrYPSwb-DH3M06Qvl28OpoH1jUpDvMmPhMuzHh1BJLMQEjpPqr_xwhmT6m5nZyXk85AUM9IiUclxBsdC0ZOZYe9YY592EI5VhKxeXGHcLkk8d7Ro857XRFx0na2CXiWWQ..&stops=-122.4079,37.78356;-122.404,37.782&f=json

But both return invalid token?

I'd also like to test from my machine, so tried putting in my IP addres for the referer when requesting the token, but that returned invalid token too.

Would someone be able to provide some steps on how to test using the ArcGIS Online network services?

Outcomes