Guidance

constructor(instructions: List<GuidanceInstruction>, announcement: GuidanceAnnouncement?, distanceToManeuver: Distance, currentPhase: InstructionPhase, shouldPlay: Boolean = false)

Parameters

instructions

List of next instructions. The number of instructions provided is determined by GuidanceEngineOptions.instructionDistanceThreshold.

announcement

Announcement about the upcoming maneuver.

distanceToManeuver

Distance to the upcoming maneuver.

currentPhase

InstructionPhase of the upcoming maneuver.

shouldPlay

Whether announcement should be triggered according to guidelines.