You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: find-route/README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,13 @@ For simplicity, the sample comes loaded with a start and end stop. You can tap o
14
14
15
15
## How it works
16
16
17
-
1. Create a `RouteTask` using a URL to an online route service.
18
-
2. Generate default `RouteParameters` using `routeTask.createDefaultParameters()`.
19
-
3. Set `returnDirections` on the parameters to true.
20
-
4. Add `Stop`s to the parameters `stops` collection for each destination.
21
-
5. Solve the route using `routeTask.solveRoute(routeParameters)` to get a `RouteResult`.
22
-
6. Iterate through the result's `Route`s. To display the route, create a graphic using the geometry from `route.routeGeometry`. To display directions, use `route.directionManeuvers`, and for each `DirectionManeuver`, display `DirectionManeuver.directionText`.
17
+
1. Set the `ArcGISEnvironment.applicationContext` to use a `RouteTask`
18
+
2. Create a `RouteTask` using a URL to an online route service.
19
+
3. Generate default `RouteParameters` using `routeTask.createDefaultParameters()`.
20
+
4. Set `returnDirections` on the parameters to true.
21
+
5. Add `Stop`s to the parameters `stops` collection for each destination.
22
+
6. Solve the route using `routeTask.solveRoute(routeParameters)` to get a `RouteResult`.
23
+
7. Iterate through the result's `Route`s. To display the route, create a graphic using the geometry from `route.routeGeometry`. To display directions, use `route.directionManeuvers`, and for each `DirectionManeuver`, display `DirectionManeuver.directionText`.
0 commit comments