Class: DirectionsFeatureSetE-mail This Topic Printable Version Give Us Feedback

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:


DirectionsFeatureSet has no constructor. For more information, see Getting driving directions.

Class hierarchy

esri.tasks.FeatureSet
  |_ esri.tasks.DirectionsFeatureSet

Properties

Property Type Description
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

<Extent> extent

The extent of the route.

<Polyline> mergedGeometry

A single polyline representing the route.

<String> routeId

The ID of the route returned from the server.

<String> routeName

Name specified in RouteParameters.stops.

<Number> totalDriveTime

Actual drive time calculated for the route.

<Number> totalLength

The length of the route as specified in RouteParameters.directionsLengthUnits.

<Number> totalTime

The total time calculated for the route as specified in RouteParameters.directionsTimeAttribute.