onRouteInstruction

abstract fun onRouteInstruction(currentInstruction: RoutePointInstruction, nextInstruction: RoutePointInstruction, afterInstruction: RoutePointInstruction?)

Implement this method to handle routing instructions.

Parameters

currentInstruction

The Instruction of the current key point in the route.

nextInstruction

The Instruction of the next key point point in the route.

afterInstruction

The Instruction object of the immediately following key point in the route, if there is another key point very quickly after the previous one. This may be null.