SafetyLocation

data class SafetyLocation(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val safetyLocationId: String, val startLocation: GeoPoint, val endLocation: GeoPoint = startLocation, val boundingBox: GeoBoundingBox, val type: SafetyLocation.Type, val speedLimit: Speed?, val recommendedWarningDistance: Distance?, val isZone: Boolean) : HorizonElement

Describes a safety location on the horizon element.

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

Parameters

id

Identifier of this element.

pathId

Identifier of the path this element belongs to.

startOffset

Start offset on the path.

endOffset

End offset on the path.

safetyLocationId

Unique id of safety location data object.

startLocation

Start coordinate of the safety location.

endLocation

End coordinate of the safety location.

boundingBox

Bounding box encapsulating safety location.

type

Safety location type.

speedLimit

The maximum allowed speed for the reported safety location.

recommendedWarningDistance

Recommended warning distance.

isZone

An indication if the camera is a zone. i.e. if the start point and the end point are truly different locations.

Constructors

Link copied to clipboard
fun SafetyLocation(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, safetyLocationId: String, startLocation: GeoPoint, endLocation: GeoPoint = startLocation, boundingBox: GeoBoundingBox, type: SafetyLocation.Type, speedLimit: Speed?, recommendedWarningDistance: Distance?, isZone: Boolean)

Types

Link copied to clipboard
value class Type

Safety location types.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val endOffset: Distance
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override val pathId: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val startOffset: Distance
Link copied to clipboard