HazardType
public enum HazardType : Equatable, Hashable
extension HazardType: CaseIterable
Describes the type of Hazard data.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Jam tails are the dangerous ends of queues. Drivers are warned to reduce speed ahead of the vehicles which are already queuing in a jam.
Declaration
Swift
case jamTailWarning
-
All other kinds of hazards that cannot be classified with the proposed scheme.
Declaration
Swift
case generic
-
Accidents are dangerous, primarily if the accident occurred very recently. Situations like this are usually unclear, and other drivers must pass the location carefully or offer assistance.
Declaration
Swift
case accident
-
Vehicles that come to a sudden stop may cause an obstacle. Furthermore, the passengers of the broken-down vehicle may leave the vehicle, and cause a hazard to other drivers. Drivers must take special care to avoid passengers who leave a disabled vehicle.
Declaration
Swift
case brokenDownVehicle
-
Slippery road conditions are mainly caused by bad weather conditions, but also abnormal liquids (e.g., oil) on the road surface. Such conditions can lead to skidding or unexpected vehicle movements.
Declaration
Swift
case slipperyRoad
-
Severe weather conditions may reduce the visibility to an extent where drivers must be careful. Drivers should reduce speed and watch out for other vehicles.
Declaration
Swift
case reducedVisibility
-
Unexpected strong winds (e.g., cross winds) may cause the vehicle to move in unwanted ways. Drivers need to be aware and reduce their speed if needed.
Declaration
Swift
case strongWind
-
The road’s surface might be damaged, causing the driver to drive slowly and erratically. Examples of such bad conditions are potholes and damaged roads.
Declaration
Swift
case objectsOnRoad
-
Roadworks are construction sites for roadway maintenance. They usually include reduced speed limits and lane changes.
Declaration
Swift
case roadworks
-
The surface of the road might be damaged causing the driver to reduce speed and drive erratically to avoid road hazards. Examples of such bad conditions are potholes and damaged roads.
Declaration
Swift
case badRoadConditions
-
Vehicles driving the wrong way, against the legal road direction.
Declaration
Swift
case wrongWayDriver
-
Provides collection with all elements of HazardType.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static var allCases: [HazardType]