open class RouteController: NSObject

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.

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



    @objc public func userIsOnRoute(_ location: CLLocation) -> Bool