Hazard

public struct Hazard : Equatable, Hashable

A hazard.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • The location information for the hazard.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum Location
    extension Hazard.Location: Equatable, Hashable
  • Categories of hazards.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum Category
  • The severity of a hazard describes its criticality with respect to the danger. The severity may get lower over time as the hazardous situation becomes more secure (e.g., police regulating traffic).

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum Severity
  • Describes the type of Hazard data.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum HazardType : Equatable
    extension Hazard.HazardType: Hashable
    extension Hazard.HazardType: CaseIterable
  • id

    Unique identifier of the hazard data.

    Declaration

    Swift

    public let id: HazardID
  • Defines the time the hazard not be valid anymore.

    Declaration

    Swift

    public let expirationTime: Date
  • The version is an incrementing counter so that greater numbers are indicating an update of the hazard message content.

    Declaration

    Swift

    public let version: Int
  • Defines the location coordinates for this hazard.

    Declaration

    Swift

    public let location: Location
  • The category of the hazard.

    Declaration

    Swift

    public let category: Category
  • The severity of the hazard.

    Declaration

    Swift

    public let severity: Severity
  • Type of the hazard.

    Declaration

    Swift

    public let type: HazardType