SafetyLocationElement

class SafetyLocationElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val safetyLocation: SafetyLocation) : HorizonElement

Horizon element that contains data about a safety location.

To receive such elements in the horizon snapshot, specify SafetyLocationElementType in the horizon options that you register with the horizon engine:

val horizonOptions = HorizonOptions(
elementTypes = listOf(SafetyLocationElementType, ...),
...
)

Constructors

Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, safetyLocation: SafetyLocation)

Properties

Link copied to clipboard
open override val endOffset: Distance

End offset on the horizon path. If a zone safety location 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 safety location, the end offset of the safety location element is updated accordingly.

Link copied to clipboard
open override val id: Int

Identifier of this element.

Link copied to clipboard
open override val pathId: Int

Identifier of the horizon path to which this element belongs.

Link copied to clipboard

Safety location data.

Link copied to clipboard
open override val startOffset: Distance

Start offset on the horizon path.

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