onDistanceToNextInstructionChanged
abstract fun onDistanceToNextInstructionChanged(distance: Distance, instructions: List<GuidanceInstruction>, currentPhase: InstructionPhase)
Called with each location update that changes the distance to the instruction.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
distance
Distance to the instruction.
instructions
List of next instructions.
currentPhase
Triggering phase of the instruction.