onUserProgressAlongRoute

Implement this method to be notified of the user's progress along the current route segment.

Parameters

state

An object describing the user's progress along the route. It contains utility functions to attain the visited and upcoming portions of the current segment path. Additional utility functions are also provided.