require(["esri/tasks/RouteResult"], function(RouteResult) { /* code goes here */ });
Name | Type | Summary |
---|---|---|
directions | DirectionsFeatureSet | Route directions are returned if RouteParameters.returnDirections is set to true. |
route | Graphic | The Route graphic that is returned if RouteParameters.returnRoutes is true. |
routeName | String | The name of the route. |
stops | Graphic[] | Array of stops. |
DirectionsFeatureSet
> directionsRouteParameters.returnDirections
is set to true.
NOTE: For a more updated approach to working with directions, please see the Working with the Directions Widget topic.
Graphic
> routeRouteParameters.returnRoutes
is true. String
> routeNameGraphic[]
> stopsRouteParameters.returnStops
is true.