NavigationRouteObserver
public protocol NavigationRouteObserver : Observer
An observer to receive navigation route events.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Reports that the driver has deviated from the current route.
Declaration
Swift
func didDeviateFromRoute(currentRoute: Route, location: GeoLocation)Parameters
currentRouteThe current route.
locationThe location at which the driver has deviated from the route.
-
Reports that an updated route plan is available.
Declaration
Swift
func didProposeRoutePlan(routePlan: RoutePlan, reason: RouteReplanningReason)Parameters
routePlanThe updated route plan.
reasonThe reason for the proposal, and how the new route is different from the previous route.
-
Reports that route has been replanned.
Declaration
Swift
func didReplanRoute(replannedRoute: Route, reason: RouteReplanningReason)Parameters
replannedRouteThe replanned route.
reasonThe reason for replanning, and how the new route is different from the previous route.
-
Reports that the set of routes in the current navigation session has changed. For example, additions of better proposals or replannings of a route will trigger it.
Declaration
Swift
func didChangeRoutes(navigatedRoutes: NavigatedRoutes)Parameters
navigatedRoutesThe currently navigated routes.
-
Reports that route has been replanned due to Language change.
Declaration
Swift
func didReplanRouteOnLanguageChange(replannedRoute: Route, reason: RouteReplanningReason, language: Locale)Parameters
replannedRouteThe replanned route.
reasonThe reason for replanning, and how the new route is different from the previous route.
languageThe new language in use.
NavigationRouteObserver Protocol Reference