Information about a RouteTask. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- accumulateAttributeNames : list<string>
- costAttributes : jsobject
- defaultTravelModeName : string
- directionsDistanceUnits : Enums.UnitSystem
- directionsLanguage : string
- directionsStyle : Enums.DirectionsStyle
- directionsSupport : Enums.NetworkDirectionsSupport
- findBestSequence : bool
- maxLocatingDistance : double
- networkName : string
- outputSpatialReference : SpatialReference
- preserveFirstStop : bool
- preserveLastStop : bool
- restrictionAttributes : jsobject
- routeShapeType : Enums.RouteShapeType
- startTime : date
- supportedLanguages : list<string>
- supportedRestrictionUsageParameterValues : list<string>
- supportsRerouting : bool
- travelModes : list<TravelMode>
Detailed Description
Note: You cannot declare or create a component of this type in QML code.
RouteTaskInfo contains the network dataset defaults from the RouteTask once it is loaded. Use this type to obtain information about RouteTask defaults before setting RouteParameters.
Property Documentation
Returns names of all the accumulated attributes (read-only).
Returns the cost attributes as a key-value pair (read-only).
The key is the name as a string, and the value is the CostAttribute.
Returns the name of the default travel mode (read-only).
If the route task is initialized with a URL or local network that has no travel modes, then the default travel mode name is an empty string.
Returns the units in which the length information will be reported in the route directions (read-only).
See also Enums.UnitSystem.
Returns the style of the resulting route directions (read-only).
See also Enums.DirectionsStyle.
Returns whether the underlying network dataset supports the returning of directions (read-only).
Note: For services prior to ArcGIS 10.8, this value will be Enums.NetworkDirectionsSupportUnknown.
This property was introduced in Esri.ArcGISRuntime 100.7.
See also Enums.NetworkDirectionsSupport.
Returns whether findBestSequence is true
(read-only).
This indicates whether the analysis should reorder stops to find the optimized route. The default is false
.
Maximum locating distance.
Maximum locating distance is the furthest distance (in meters) that Network Analyst searches when locating or relocating a point onto the network. The search looks for suitable edges or junctions and snaps the point to the nearest one. If a suitable location isn't found within the maximum locating distance, the object is marked as unlocated.
This property was introduced in Esri::ArcGISRuntime 100.6.
outputSpatialReference : SpatialReference |
Returns the output spatial reference (read-only).
Returns the restriction attributes as a key-value pair (read-only).
The key is the name as a string, and the value is the RestrictionAttribute.
Returns the output shape type for a route (read-only).
See also Enums.RouteShapeType.
Returns a list of supported languages for the route directions (read-only).
Returns a list of supported restriction usage parameter values.
Restrictions can be identified for particular elements such that, during an analysis, traversing restricted elements is prohibited entirely, avoided, or even preferred. The values in this list which are assigned to the restriction usage parameter determines whether the restriction attribute prohibits, avoids, or prefers the network elements it is associated with. Furthermore, the degree to which network elements are avoided or preferred can be defined by choosing High, Medium, or Low.
Value of service property "Supports Rerouting"
If the "Supports Rerouting" property does not exist on service, then value will be false
. For local data, the value will be true
.
This property was introduced in Esri::ArcGISRuntime 100.6.
travelModes : list<TravelMode> |
Returns a list of travel modes set in the RouteParameters (read-only).