A default off-route detection class is included inside the Navigation SDK which measures the distance from the users actual location to the one you'd expect the user to be and where they should be. If the measured distance is greater than the set threshold, the
userOffRoute callback will get invoked. It is within the
OffRouteListener that you can handle a reroute event by using
In addition the off-route callback, by default, is placed on a timer to not cause a constant rerouting loop, however, this value can also be adjusted in the options class; the default is 3 seconds.
You are also able to adjust a minimum distance that must be traveled before the off-route callback can be called again; default is 50 meters.