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.
-
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.