libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationEngine.java
private double calculateStepDistanceRemaining(Location location, DirectionsRoute directionsRoute) {
    Point snappedPosition = userSnappedToRoutePosition(location, stepPoints);
    return stepDistanceRemaining(
      snappedPosition, indices.legIndex(), indices.stepIndex(), directionsRoute, stepPoints
    );
  }
/**
   * Given a location update, calculate the current step distance remaining.
   *
   * @param location        for current coordinates
   * @param directionsRoute for current {@link LegStep}
   * @return distance remaining in meters
   */
Given a location update, calculate the current step distance remaining.
@param location        for current coordinates
@param directionsRoute for current  LegStep
@return distance remaining in meters
Given a location update calculate the current step distance remaining . @param location for current coordinates @param directionsRoute for current LegStep @return distance remaining in meters
private double calculateStepDistanceRemaining(Location location, DirectionsRoute directionsRoute) {
    Point snappedPosition = userSnappedToRoutePosition(location, stepPoints);
    return stepDistanceRemaining(
      snappedPosition, indices.legIndex(), indices.stepIndex(), directionsRoute, stepPoints
    );
  }
private double calculateStepDistanceRemaining ( Location location , DirectionsRoute directionsRoute ) { Point snappedPosition = userSnappedToRoutePosition ( location , stepPoints ) ; return stepDistanceRemaining ( snappedPosition , indices . legIndex ( ) , indices . stepIndex ( ) , directionsRoute , stepPoints ) ; }
Given a location update, calculate the current step distance remaining.
Given a location update calculate the current step distance remaining .