SpeedLimitElement
class SpeedLimitElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val speedLimit: SpeedLimit) : HorizonElement
Horizon element that contains data about a speed limit.
To receive such elements in the horizon snapshot, specify SpeedLimitElementType in the horizon options that you register with the horizon engine:
val horizonOptions = HorizonOptions(
elementTypes = listOf(SpeedLimitElementType, ...),
...
)
Content copied to clipboard
To retrieve speed limits for a specific vehicle type (e.g., for trucks), set the vehicle type accordingly, using the com.tomtom.sdk.vehicle.VehicleProvider:
vehicleProvider.vehicle = Vehicle.Truck()
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, speedLimit: SpeedLimit)
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
Speed limit data, consisting of a speed limit type and a speed limit value.
Link copied to clipboard
Start offset on the horizon path.