Travel options for routes generated by AGSRouteTask
.
Instances of this class represent options that can be used to customize the routes generated by AGSRouteTask
, AGSClosestFacilityTask
, or AGSServiceAreaTask
.
A default list of travel modes is available on AGSRouteTaskInfo::travelModes
, AGSClosestFacilityTaskInfo::travelModes
or AGSServiceAreaTaskInfo::travelModes
based on the options supported by the underlying network analyst service or transportation network dataset.
- Since
- 100
◆ init
◆ travelMode
+ (instancetype) travelMode |
|
|
|
◆ attributeParameterValues
◆ distanceAttributeName
- (NSString*) distanceAttributeName |
|
readwritenonatomiccopy |
The name of the attribute that can be set as impedanceAttributeName
to optimize routes based on distance travelled.
- Since
- 100
◆ impedanceAttributeName
- (NSString*) impedanceAttributeName |
|
readwritenonatomiccopy |
The name of the attribute to use as the impedance. Routes will be optimized in order to minimize this impedance along the route. To minimize time taken by the route, use timeAttributeName
. To minimize distance travelled by the route, use distanceAttributeName
.
You can also use other attributes that are available in AGSRouteTaskInfo::costAttributes
as the impedance.
- Since
- 100
◆ name
Name of the travel mode
- Since
- 100
◆ outputGeometryPrecision
- (double) outputGeometryPrecision |
|
readwritenonatomicassign |
The desired precision (in Meters) of the output route geometry after generalization.
- Since
- 100
◆ restrictionAttributeNames
- (NSArray<NSString*>*) restrictionAttributeNames |
|
readwritenonatomiccopy |
◆ timeAttributeName
- (NSString*) timeAttributeName |
|
readwritenonatomiccopy |
The name of the attribute that can be set as impedanceAttributeName
to optimize routes based on time taken.
- Since
- 100
◆ travelModeDescription
- (NSString*) travelModeDescription |
|
readwritenonatomiccopy |
Description of this travel mode
- Since
- 100
◆ type
The type of travel mode this instance represents
- Since
- 100
◆ useHierarchy
◆ uTurnPolicy
Specifies how U-Turns should be handled. U-turns can be allowed everywhere, nowhere, only at dead ends, or only at intersections and dead ends. Allowing U-turns implies the vehicle can turn around at a junction and double back on the same street.
- Since
- 100