Instruction

fun Instruction(routeOffset: Distance = Distance.ZERO, length: Distance = Distance.meters(DEFAULT_MANEUVER_LENGTH), combineWithNext: Boolean = false)

Parameters

routeOffset

The distance from the start of the route to the point of the instruction.

length

The length of the instruction.

combineWithNext

Indicates whether the instruction will be combined with the next item along the route, which can be another instruction, a waypoint or the destination.