LocationContext

public struct LocationContext : Equatable

LocationContext provides information about the driver’s location, which has been matched against the road network.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Current speed of the vehicle with UnitSpeed.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public let road: RoadProperties?
  • Address of the current location.

    Declaration

    Swift

    public let address: Address?