HazardElement
class HazardElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val hazard: Hazard) : HorizonElement
Horizon element that contains data about a hazard.
Important: This is a Public Preview API. It may be changed or removed at any time.
To receive such elements in the horizon snapshot, specify HazardElementType in the horizon options that you register with the horizon engine:
val horizonOptions = HorizonOptions(
elementTypes = listOf(HazardElementType, ...),
...
)
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
End offset on the horizon path. If a hazard zone stretches beyond the end of the horizon, the SDK only provides data for the part of the zone within the horizon length. As the horizon is extended ahead of the vehicle while the vehicle moves along the zone, the end offset of the hazard element is updated accordingly.
Link copied to clipboard
Identifier of the horizon path to which this element belongs.
Link copied to clipboard
Start offset on the horizon path.