Retrieve travel modes

GETGETPOST
Use dark colors for code blocksCopy
1
GET https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/retrieveTravelModes

Retrieve travel modes service is used to get the supported travel modes configured in your ArcGIS Online organization.

Parameters

NameRequiredTypeDefaultDescription
string

The request response format, either json or pjson

string

An access token with the required privileges.

Required parameters

f

The response format.

Use dark colors for code blocksCopy
1
f=json

token

An access token with the required privileges.

  • ArcGIS Location Platform: premium:user:networkanalysis:routing or premium:user:networkanalysis:optimizedrouting
  • ArcGIS Online: premium:user:networkanalysis
Use dark colors for code blocksCopy
1
token=<ACCESS_TOKEN>

Learn more about access tokens and privileges in the Security and authentication developer guide.

Response details

You can make a request to retrieve travel modes using the following form:

Use dark colors for code blocksCopy
1
2
3
4
5
POST https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/retrieveTravelModes? HTTP/1.1
Content-Type: application/x-www-form-urlencoded

token=<ACCESS_TOKEN>
&f=json

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.