abstract fun onDistanceToNextInstructionChanged(distance: Distance, instructions: List<GuidanceInstruction>, currentPhase: InstructionPhase)

Called with each location update that changes the distance to the instruction.

This method is triggered whenever the location update modifies the distance to the upcoming instruction. This allows real-time updates of the distance information for the user.

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



The updated Distance to the next instruction. This provides the remaining distance to the next instruction.


The ordered list of next instructions along the route.


The current InstructionPhase of the instruction. The value indicates the stage of the current instruction.