Hazard

class Hazard(val id: HazardId, val type: HazardType, val category: HazardCategory, val severity: HazardSeverity, val detailedInformation: DetailedHazardInformation?, val location: HazardLocation, val version: Int)

Describes a hazard.

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

Constructors

Link copied to clipboard
constructor(id: HazardId, type: HazardType, category: HazardCategory, severity: HazardSeverity, detailedInformation: DetailedHazardInformation?, location: HazardLocation, version: Int)

Properties

Link copied to clipboard

Category of a hazard. It aggregates the different hazard types at a higher level.

Link copied to clipboard

Detailed information about the hazard. It consists of data specific to each hazard type. For example, for ReducedVisibility hazards, flags to indicate what causes reduced visibility (heavy rain or fog).

Link copied to clipboard

Identifier of the hazard.

Link copied to clipboard

Location of this hazard. It indicates where the hazard is happening.

Link copied to clipboard

Severity of a hazard. It indicates how critical this hazard is in terms of safety on the road.

Link copied to clipboard

Type of the hazard.

Link copied to clipboard

An incrementing counter representing the version of the hazard. Higher numbers indicate prior updates to Hazard content.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Converts the Hazard object to a String representation.