TrafficElement
class TrafficElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val trafficEvent: CoreTrafficEvent) : HorizonElement
Horizon element that contains data about a traffic.
To receive such elements in the horizon snapshot, specify TrafficElementType in the horizon options. Use the factory method buildHorizonOptions to build horizon options with the desired element types instead of calling the constructor directly:
val horizonOptions = buildHorizonOptions(
elementTypes = listOf(TrafficElementType, ...),
...
)Content copied to clipboard
Constructors
Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, trafficEvent: CoreTrafficEvent)
Properties
Link copied to clipboard
End offset on the horizon path.
Link copied to clipboard
Identifier of the horizon path to which this element belongs.
Link copied to clipboard
Start offset on the horizon path.
Link copied to clipboard
Traffic data.