Description
Class added v1.4. A
FeatureSet that has properties specific to routing. The
FeatureSet.features property contains the turn by turn directions text and geometry of the route. The attributes for each feature provide information associated with the corresponding route segment. The following attributes are returned:
- text - The direction text.
- length - The length of the route segment.
- time - The time to travel along the route segment.
- ETA - The estimated time of arrival at the route segment in the local time.
- maneuverType - The type of maneuver that the direction represents.
DirectionsFeatureSet has no constructor. For more information, see
Getting driving directions.
Class hierarchy
esri.tasks.FeatureSet
|_ esri.tasks.DirectionsFeatureSet
Properties
| extent |
Extent
|
The extent of the route. |
| mergedGeometry |
Polyline
|
A single polyline representing the route. |
| routeId |
String
|
The ID of the route returned from the server. |
| routeName |
String
|
Name specified in RouteParameters.stops. |
| totalDriveTime |
Number
|
Actual drive time calculated for the route. |
| totalLength |
Number
|
The length of the route as specified in RouteParameters.directionsLengthUnits. |
| totalTime |
Number
|
The total time calculated for the route as specified in RouteParameters.directionsTimeAttribute. |
Properties Detail
A single polyline representing the route.
The ID of the route returned from the server.
Name specified in RouteParameters.stops.
Actual drive time calculated for the route.
The length of the route as specified in RouteParameters.directionsLengthUnits.
The total time calculated for the route as specified in RouteParameters.directionsTimeAttribute.