Route Task
A route task object is used for calculation route by specified parameters. A class that implements the route task. The route task class uses a transportation network to create a route between multiple stops. The route generated and the results returned honor the settings provided by a route settings object.
Since
200.1.0
Constructors
Types
Properties
Inherited properties
An API key is a unique key used to authorize access to specific services and resources in ArcGIS Online. It is also used to monitor access to those services.
Functions
Creates default parameters. Generates default parameters.
Imports route parameters from feature collection and then adjusts imported parameters to current Route task. Travel mode would be null if it could not be created from the route layer settings for the route task's network. In case if travel mode is null then client can override it by another travel mode (for example obtained from RouteTaskInfo). Accumulate attributes from Route Info table going to be applied only if they exist in transportation network restriction and cost attributes.
Imports route parameters from portal item and then adjusts imported parameters to current Route task. Travel mode would be null if it could not be created from the route layer settings for the route task's network. In case if travel mode is null then client can override it by another travel mode (for example obtained from RouteTaskInfo). Accumulate attributes from Route Info table going to be applied only if they exist in transportation network restriction and cost attributes.
Gets route task info. Generates default parameters.
Solves a route passing in a parameters object.