refreshRouteWithRouteHandleAndRefreshRouteParameters abstract method

TaskHandle refreshRouteWithRouteHandleAndRefreshRouteParameters(
  1. RefreshRouteParameters refreshRouteParameters,
  2. RoutingOptions routingOptions,
  3. CalculateRouteCallback callback
)

Asynchronously refreshes a previously calculated route from the provided RouteHandle, updating the starting point and route metadata based on RoutingOptions.

The route shape from the new starting point to the destination remains unchanged, and only metadata such as arrival time and traffic delays are updated.

  • refreshRouteParameters The parameters used to refresh the route

  • routingOptions The options define the vehicle and route options used to calculate the route.

  • callback Callback object that will be invoked after refreshing the route. It is always invoked on the main thread.

Returns TaskHandle. Handle that will be used to manipulate the execution of the task.

Implementation

TaskHandle refreshRouteWithRouteHandleAndRefreshRouteParameters(RefreshRouteParameters refreshRouteParameters, RoutingOptions routingOptions, CalculateRouteCallback callback);