public interface RerouteBehaviorOverride
|Modifier and Type||Method and Description|
If implemented by the client per
boolean shouldReroute(Coordinate offRouteLocation)
NavigationManager.setRerouteBehaviorOverride(RerouteBehaviorOverride)this method will be called just before the NavigationManager will attempt to re-route the user; e.g. because it has determined the user's location is sufficiently off-route that a new route to the original destination(s) is needed.
Returning false from this method will cause the NavigationManager to essentially skip the re-route, and thereafter will continue as if the user were still on-route -- at least until the next location-update is received (at which point, this method might be invoked again, if the user is still considered off-route at that point).
offRouteLocation- the coordinates of the location at which the user was considered to be off-route (i.e. triggering the need to re-route the user)