LocationContext

public struct LocationContext : Equatable

Location context contains detailed information about the current location during navigating.

To retrieve location context:

class NavigationLocationContextObserverImpl : NavigationLocationContextObserver { override func didDetectLocationContext(locationContext: LocationContext) {} }

private let navigationLocationContextObserver = NavigationLocationContextObserverImpl() … tomTomNavigation.addLocationContextObserver(navigationLocationContextObserver)

  • The current speed of the vehicle at the current location.

    Declaration

    Swift

    public let speed: Measurement<UnitSpeed>
  • The SpeedLimit at the current location, or nil if the current location is off-road or speed limit data is not available.

    Declaration

    Swift

    public let speedLimit: TomTomSDKCommon.SpeedLimit?
  • The RoadProperties at the current location, or nil if the current location is off-road.

    Declaration

    Swift

    public let road: RoadProperties?
  • The Address at the current location, or nil if address data is unavailable.

    Declaration

    Swift

    public let address: Address?