libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/routeprogress/RouteStepProgress.java
public float fractionTraveled() {
    float fractionTraveled = 1;

    if (step().distance() > 0) {
      fractionTraveled = (float) (distanceTraveled() / step().distance());
      if (fractionTraveled < 0) {
        fractionTraveled = 0;
      }
    }
    return fractionTraveled;
  }
/**
   * Get the fraction traveled along the current step, this is a float value between 0 and 1 and
   * isn't guaranteed to reach 1 before the user reaches the next step (if another step exist in route).
   *
   * @return a float value between 0 and 1 representing the fraction the user has traveled along
   * the current step.
   * @since 0.1.0
   */
Get the fraction traveled along the current step, this is a float value between 0 and 1 and
isn't guaranteed to reach 1 before the user reaches the next step (if another step exist in route).

@return a float value between 0 and 1 representing the fraction the user has traveled along
the current step.
Get the fraction traveled along the current step this is a float value between 0 and 1 and isn ' t guaranteed to reach 1 before the user reaches the next step ( if another step exist in route ) . @return a float value between 0 and 1 representing the fraction the user has traveled along the current step .
public float fractionTraveled() {
    float fractionTraveled = 1;
    if (step().distance() > 0) {
      fractionTraveled = (float) (distanceTraveled() / step().distance());
      if (fractionTraveled < 0) {
        fractionTraveled = 0;
      }
    }
    return fractionTraveled;
  }
public float fractionTraveled ( ) { float fractionTraveled = 1 ; if ( step ( ) . distance ( ) > 0 ) { fractionTraveled = ( float ) ( distanceTraveled ( ) / step ( ) . distance ( ) ) ; if ( fractionTraveled < 0 ) { fractionTraveled = 0 ; } } return fractionTraveled ; }
Get the fraction traveled along the current step, this is a float value between 0 and 1 and
 isn't guaranteed to reach 1 before the user reaches the next step (if another step exist in route).
Get the fraction traveled along the current step this is a float value between 0 and 1 and isn ' t guaranteed to reach 1 before the user reaches the next step ( if another step exist in route ) .