NavigationLocationContextObserver

public protocol NavigationLocationContextObserver : Observer

Declares an observer that can receive navigation guidance events.

After navigation has started (with or without a route), you will receive LocationContext via the NavigationLocationContextObserver.didDetectLocationContext(locationContext:) method.

To use this observer, implement the protocol:

class CustomNavigationLocationContextObserver : NavigationLocationContextObserver {
    func didDetectLocationContext(locationContext: LocationContext) {
        // Handle the detected location context.
    }
}

To add a NavigationLocationContextObserver, use addLocationContextObserver(_:). To stop receiving these events, remove the observer using removeLocationContextObserver(_:).