Guidance

data class Guidance(    val instructions: List<GuidanceInstruction>,     val announcement: GuidanceAnnouncement? = null,     val distanceToManeuver: Distance,     val currentPhase: InstructionPhase)

Set of information about upcoming maneuvers.

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

Parameters

instructions

List of next instructions, which can be the nearest instruction, other instructions within a given radius (1 kilometer by default), or both.

announcement

Announcement about the upcoming maneuver.

distanceToManeuver

Distance to the upcoming maneuver.

currentPhase

InstructionPhase of the upcoming maneuver.

Constructors

Link copied to clipboard
fun Guidance(    instructions: List<GuidanceInstruction>,     announcement: GuidanceAnnouncement? = null,     distanceToManeuver: Distance,     currentPhase: InstructionPhase)

Properties

Link copied to clipboard
val announcement: GuidanceAnnouncement? = null
Link copied to clipboard
val currentPhase: InstructionPhase
Link copied to clipboard
val distanceToManeuver: Distance
Link copied to clipboard
val instructions: List<GuidanceInstruction>