SafetyCameraWarning
public struct SafetyCameraWarning : Hashable
A struct that provides safety camera warning information.
-
Unique identifier for this specific safety camera warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.
Declaration
Swift
public var id: Int32 -
Distance to the safety camera in meters.
Declaration
Swift
public var distanceToCameraInMeters: Double -
The speed limit observed by the safety camera.
Declaration
Swift
public var speedLimitInMetersPerSecond: Double -
The type of the safety camera element.
Declaration
Swift
public var type: SafetyCameraType -
The distance type of the warning (e.g.: warning for a new safety camera ahead, warning for passing a safety camera). Since the safety camera warning is given relative to a single position on the route,
DistanceType.reachedwill never be given for this warning.Declaration
Swift
public var distanceType: DistanceType -
Creates a new instance.
Declaration
Swift
public init(id: Int32 = 0, distanceToCameraInMeters: Double, speedLimitInMetersPerSecond: Double, type: SafetyCameraType, distanceType: DistanceType)