| Package | com.esri.ags.tasks |
| Class | public class DirectionsFeatureSet |
| Inheritance | DirectionsFeatureSet FeatureSet flash.events.EventDispatcher |
Note: DirectionsFeatureSet, and other routing related classes, were added in version 1.2 and requires ArcGIS Server 9.3.1 or above (with a "route" layer).
var routeResult:RouteResult = event.routeSolveResult.routeResults[0];
directionsFS = routeResult.directions;
graphicsLayer.add(new Graphic(directionsFS.mergedGeometry, routeSymbol));
var i:int = 0;
for each (var feature:Graphic in directionsFS.features)
{
directions.htmlText += "
"+ feature.attributes.text
+ " (" + feature.attributes.length + " miles)");
i++;
}See also
| Property | Defined by | ||
|---|---|---|---|
![]() | attributes : Array
Array of Objects where each object holds the name-value pairs of field names and field values.
| FeatureSet | |
![]() | displayFieldName : String
The display field name.
| FeatureSet | |
| extent : Extent
The extent of the route.
| DirectionsFeatureSet | ||
![]() | features : Array
Array of graphic features.
| FeatureSet | |
![]() | fieldAliases : Object
The field aliases.
| FeatureSet | |
![]() | geometryType : String
The geometry type of the feature.
| FeatureSet | |
| mergedGeometry : Polyline
A single polyline representing the route.
| DirectionsFeatureSet | ||
| routeId : String
The ID of the route returned from the server.
| DirectionsFeatureSet | ||
| routeName : String
Name specified in RouteParameters.stops.
| DirectionsFeatureSet | ||
![]() | spatialReference : SpatialReference
The spatial reference of the features.
| FeatureSet | |
| totalDriveTime : Number
Actual drive time calculated for the route.
| DirectionsFeatureSet | ||
| totalLength : Number
The length of the route as specified in RouteParameters.directionsLengthUnits.
| DirectionsFeatureSet | ||
| totalTime : Number
The total time calculated for the route as specified in RouteParameters.directionsTimeAttribute.
| DirectionsFeatureSet | ||
| extent | property |
public var extent:ExtentThe extent of the route.
This property can be used as the source for data binding.
| mergedGeometry | property |
public var mergedGeometry:PolylineA single polyline representing the route.
This property can be used as the source for data binding.
| routeId | property |
public var routeId:StringThe ID of the route returned from the server.
This property can be used as the source for data binding.
| routeName | property |
public var routeName:StringName specified in RouteParameters.stops.
This property can be used as the source for data binding.
See also
| totalDriveTime | property |
public var totalDriveTime:NumberActual drive time calculated for the route.
This property can be used as the source for data binding.
| totalLength | property |
public var totalLength:NumberThe length of the route as specified in RouteParameters.directionsLengthUnits.
This property can be used as the source for data binding.
See also
| totalTime | property |
public var totalTime:NumberThe total time calculated for the route as specified in RouteParameters.directionsTimeAttribute.
This property can be used as the source for data binding.
See also