@Deprecated
  public void refresh(RouteProgress routeProgress) {
    if (refreshCallback == null) {
      Timber.e("RefreshCallback cannot be null.");
      return;
    }
    refresh(routeProgress.directionsRoute(), routeProgress.legIndex(), refreshCallback);
  }
@ Deprecated public void refresh ( RouteProgress routeProgress ) { if ( refreshCallback == null ) { Timber . e ( "RefreshCallback cannot be null." ) ; return ; } refresh ( routeProgress . directionsRoute ( ) , routeProgress . legIndex ( ) , refreshCallback ) ; }
Refreshes the {@link DirectionsRoute} included in the {@link RouteProgress} and returns it
to the callback that was originally passed in. The client will then have to update their
{@link DirectionsRoute} with the {@link com.mapbox.api.directions.v5.models.LegAnnotation}s
returned in this response. The leg annotations start at the current leg index of the
{@link RouteProgress}
<p>
Note that if {@link RefreshCallback} is not passed in {@link RouteRefresh(String, RefreshCallback)} this call
will be ignored.
</p>

@param routeProgress to refresh via the route and current leg index
@deprecated use {@link RouteRefresh#refresh(RouteProgress, RefreshCallback)} instead