WarningUpdate
public struct WarningUpdate
Provides the warning identifier and its information.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
The identification information of the warning.
Declaration
Swift
public var warning: Warning -
The current status of the warning relative to the vehicle’s position.
Declaration
Swift
public var warningStatus: WarningStatus -
The distance to the warning, expressed in meters.
nilifWarningStatusisWarningStatus.insideorWarningStatus.passed.Declaration
Swift
public var distanceTillStartInMeters: Double? -
The distance to the end of the warning, expressed in meters. It is the same value as
WarningUpdate.distanceTillStartInMeterswhen the warning refers to a single location on the map.nilif the end of the warning is yet to be processed in the upcoming segments.Declaration
Swift
public var distanceTillEndInMeters: Double? -
Creates a new instance.
Declaration
Swift
public init(warning: Warning = Warning(), warningStatus: WarningStatus = WarningStatus.ahead, distanceTillStartInMeters: Double? = nil, distanceTillEndInMeters: Double? = nil)