Skip to content
GETGETPOST
Use dark colors for code blocksCopy
1
GET https://{{machineName}}/{{serverWebAdaptorName}}/rest/services/Routing/NetworkAnalysis/NAServer/Route/retrieveTravelModes

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

Parameters

NameRequiredTypeDefaultDescription
fstring

The request response format, either json or pjson

tokenstring

An access token with the required privileges.

Required parameters

f

The response format.

Use dark colors for code blocksCopy
1
f=json

token

Specify a token that provides the identity of a user that has the permissions to access the service. The security and authentication page provides more information about how an access token can be obtained.

Use dark colors for code blocksCopy
1
"token=<yourToken>"

Response objects

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.