onDistanceToNextInstructionChanged
Called whenever the distance to the next instruction has been updated.
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.
Parameters
The updated Distance to the next instruction. This provides the remaining distance to the next instruction.
The list of next instructions along the route ordered by distance. Provided instructions are bounded by GuidanceEngineOptions.instructionDistanceThreshold.
For example, if the threshold is set to 400 meters (the default) and the first instruction has a route offset of 700 meters, the system will include all instructions that fall within the range of 700 + 400 = 1100 meters from the starting point.
The current InstructionPhase of the instruction. The value indicates the stage of the current instruction.