RouteController
A RouteController
tracks the user’s progress along a route, posting notifications as the user reaches significant points along the route. On every location update, the route controller evaluates the user’s location, determining whether the user remains on the route. If not, the route controller calculates a new route.
RouteController
is responsible for the core navigation logic whereas
NavigationViewController
is responsible for displaying a default drop-in navigation UI.
-
The route controller’s delegate.
-
The route controller’s associated location manager.
-
The Directions object used to create the route.
-
The threshold used when we determine when the user has arrived at the waypoint. By default, we claim arrival 5 seconds before the user is physically estimated to arrive.
-
If true, the
RouteController
attempts to calculate a more optimal route for the user on an interval defined byRouteControllerProactiveReroutingInterval
. -
Details about the user’s progress along the current route, leg, and step.
-
-
Intializes a new
RouteController
. -
The idealized user location. Snapped to the route line, if applicable, otherwise raw.
See also
snappedLocation, rawLocation -
-
Given a users current location, returns a Boolean whether they are currently on the route.
If the user is not on the route, they should be rerouted.
-
Advances the leg index.
This is a convienence method provided to advance the leg index of any given router without having to worry about the internal data structure of the router.