libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationEngine.java
private void checkIncreaseStepIndex(DirectionsRoute route, RingBuffer recentDistances) {
    if (shouldIncreaseStepIndex) {
      advanceStepIndex(route, recentDistances);
      shouldIncreaseStepIndex = false;
    }
  }
/**
   * If the {@link OffRouteCallback#onShouldIncreaseIndex()} has been called by the
   * {@link com.mapbox.services.android.navigation.v5.offroute.OffRouteDetector}, shouldIncreaseStepIndex
   * will be true and the {@link NavigationIndices} step index needs to be increased by one.
   *
   * @param route to get the next {@link LegStep#geometry()}
   */
If the  OffRouteCallback#onShouldIncreaseIndex() has been called by the
com.mapbox.services.android.navigation.v5.offroute.OffRouteDetector, shouldIncreaseStepIndex
will be true and the  NavigationIndices step index needs to be increased by one.

@param route to get the next  LegStep#geometry()
If the OffRouteCallback#onShouldIncreaseIndex () has been called by the com . mapbox . services . android . navigation . v5 . offroute . OffRouteDetector shouldIncreaseStepIndex will be true and the NavigationIndices step index needs to be increased by one . @param route to get the next LegStep#geometry ()
private void checkIncreaseStepIndex(DirectionsRoute route, RingBuffer recentDistances) {
    if (shouldIncreaseStepIndex) {
      advanceStepIndex(route, recentDistances);
      shouldIncreaseStepIndex = false;
    }
  }
private void checkIncreaseStepIndex ( DirectionsRoute route , RingBuffer recentDistances ) { if ( shouldIncreaseStepIndex ) { advanceStepIndex ( route , recentDistances ) ; shouldIncreaseStepIndex = false ; } }
If the {@link OffRouteCallback#onShouldIncreaseIndex()} has been called by the
 {@link com.mapbox.services.android.navigation.v5.offroute.OffRouteDetector}, shouldIncreaseStepIndex
 will be true and the {@link NavigationIndices} step index needs to be increased by one.
If the { @link OffRouteCallback#onShouldIncreaseIndex () } has been called by the { @link com . mapbox . services . android . navigation . v5 . offroute . OffRouteDetector } shouldIncreaseStepIndex will be true and the { @link NavigationIndices } step index needs to be increased by one .