SpeedLimitOffset
public struct SpeedLimitOffset : Hashable
A struct that represents two separate speed limit offsets for higher and lower speed limits. A driver will be notified when the current driving speed is above the speed limit + offset. Only one of the two offsets is used depending on the current speed limit.
-
A speed limit offset for speed limits below the
SpeedLimitOffset.highSpeedBoundaryInMetersPerSecond.Declaration
Swift
public var lowSpeedOffsetInMetersPerSecond: Double -
A speed limit offset for speed limits above the
SpeedLimitOffset.highSpeedBoundaryInMetersPerSecond.Declaration
Swift
public var highSpeedOffsetInMetersPerSecond: Double -
The boundary that defines higher and lower speed limits.
Declaration
Swift
public var highSpeedBoundaryInMetersPerSecond: Double -
init(lowSpeedOffsetInMetersPerSecond:highSpeedOffsetInMetersPerSecond: highSpeedBoundaryInMetersPerSecond: ) Creates a new instance.
Declaration
Swift
public init(lowSpeedOffsetInMetersPerSecond: Double = 0.0, highSpeedOffsetInMetersPerSecond: Double = 0.0, highSpeedBoundaryInMetersPerSecond: Double = 0.0)