SafetyLocationElement
class SafetyLocationElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val safetyLocationId: SafetyLocationId, val startPosition: GeoPoint, val endPosition: GeoPoint = startPosition, val boundingBox: GeoBoundingBox, val type: SafetyLocationType, val speedLimit: Speed?, val recommendedWarningDistance: Distance?, val isZone: Boolean) : 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, ...),
...
)
Content copied to clipboard
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, safetyLocationId: SafetyLocationId, startPosition: GeoPoint, endPosition: GeoPoint = startPosition, boundingBox: GeoBoundingBox, type: SafetyLocationType, speedLimit: Speed?, recommendedWarningDistance: Distance?, isZone: Boolean)
Properties
Link copied to clipboard
Bounding box that encompasses the safety location.
Link copied to clipboard
End offset on the horizon path.
Link copied to clipboard
End coordinate of the safety location.
Link copied to clipboard
Identifier of the horizon path to which this element belongs.
Link copied to clipboard
Recommended warning distance. Null if not available.
Link copied to clipboard
Unique identifier of the safety location.
Link copied to clipboard
Maximum speed allowed for the safety location. Null if not available.
Link copied to clipboard
Start offset on the horizon path.
Link copied to clipboard
Start coordinate of the safety location.
Link copied to clipboard
Safety location type.