| Package | com.esri.ags.tasks.supportClasses |
| Class | public class DirectionsFeatureSet |
| Inheritance | DirectionsFeatureSet FeatureSet flash.events.EventDispatcher |
Default MXML Propertyfeatures
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | attributes : Array [read-only]
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 | |
![]() | fields : Array
The fields. | 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 |
extent:ExtentThe extent of the route.
This property can be used as the source for data binding.
public function get extent():Extent public function set extent(value:Extent):void| mergedGeometry | property |
mergedGeometry:PolylineA single polyline representing the route.
This property can be used as the source for data binding.
public function get mergedGeometry():Polyline public function set mergedGeometry(value:Polyline):void| routeId | property |
routeId:StringThe ID of the route returned from the server.
This property can be used as the source for data binding.
public function get routeId():String public function set routeId(value:String):void| routeName | property |
routeName:StringName specified in RouteParameters.stops.
This property can be used as the source for data binding.
public function get routeName():String public function set routeName(value:String):voidSee also
| totalDriveTime | property |
totalDriveTime:NumberActual drive time calculated for the route.
This property can be used as the source for data binding.
public function get totalDriveTime():Number public function set totalDriveTime(value:Number):void| totalLength | property |
totalLength:NumberThe length of the route as specified in RouteParameters.directionsLengthUnits.
This property can be used as the source for data binding.
public function get totalLength():Number public function set totalLength(value:Number):voidSee also
| totalTime | property |
totalTime:NumberThe total time calculated for the route as specified in RouteParameters.directionsTimeAttribute.
This property can be used as the source for data binding.
public function get totalTime():Number public function set totalTime(value:Number):voidSee also
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 += "<br/>" + feature.attributes.text
+ " (" + feature.attributes.length + " miles)");
i++;
}