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.

Lifecycle

  • Initializes the LocationContext instance with the speed, speed limit and street name.

    • speed: Current speed with UnitSpeed set to kilometersPerHour.
    • speedLimit: Speed limit of the current road segment.
    • road: Road of the current segment.
    • address: Address of the current road segment.

    Declaration

    Swift

    public init(speed: Measurement<UnitSpeed>, speedLimit: SpeedLimit?, road: Road?, address: Address)

Public

  • Current speed of the vehicle with UnitSpeed set to kilometersPerHour.

    Declaration

    Swift

    public let speed: Measurement<UnitSpeed>
  • Speed limit at the current location. The value is nil when the speed limit is unknown

    Declaration

    Swift

    public let speedLimit: SpeedLimit?
  • Road type of the current location.

    Declaration

    Swift

    public let road: Road?
  • Address of current location.

    Declaration

    Swift

    public let address: Address

LocationContext

  • Holds information about address.

    See more

    Declaration

    Swift

    public struct Address : Equatable