findRouteFromRouteProgress

abstract fun findRouteFromRouteProgress(location: Location, routeProgress: RouteProgress)

Calculates a new DirectionsRoute given the current Location and RouteProgress along the route.

Uses RouteOptions.coordinates and RouteProgress.remainingWaypoints to determine the amount of remaining waypoints there are along the given route.

Since

0.13.0

Parameters

location

current location of the device

routeProgress

for remaining waypoints along the route