SafetyCameraWarning
public struct SafetyCameraWarning : Hashable
A struct that provides safety camera warning information.
-
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(distanceToCameraInMeters: Double, speedLimitInMetersPerSecond: Double, type: SafetyCameraType, distanceType: DistanceType)