libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/utils/RouteUtils.java
public static boolean isNewRoute(@Nullable RouteProgress previousRouteProgress,
                                   @NonNull DirectionsRoute directionsRoute) {
    return previousRouteProgress == null || !previousRouteProgress.directionsRoute().geometry()
      .equals(directionsRoute.geometry());
  }
/**
   * Compares a new routeProgress geometry to a previousRouteProgress geometry to determine if the
   * user is traversing along a new route. If the route geometries do not match, this returns true.
   *
   * @param previousRouteProgress the past route progress with the directions route included
   * @param directionsRoute       the current directions route
   * @return true if the direction route geometries do not match up, otherwise, false
   * @since 0.7.0
   */
Compares a new routeProgress geometry to a previousRouteProgress geometry to determine if the
user is traversing along a new route. If the route geometries do not match, this returns true.

@param previousRouteProgress the past route progress with the directions route included
@param directionsRoute       the current directions route
@return true if the direction route geometries do not match up, otherwise, false
@since 0.7.0
Compares a new routeProgress geometry to a previousRouteProgress geometry to determine if the user is traversing along a new route . If the route geometries do not match this returns true . @param previousRouteProgress the past route progress with the directions route included @param directionsRoute the current directions route @return true if the direction route geometries do not match up otherwise false @since 0 . 7 . 0
public static boolean isNewRoute(@Nullable RouteProgress previousRouteProgress,
                                   @NonNull DirectionsRoute directionsRoute) {
    return previousRouteProgress == null || !previousRouteProgress.directionsRoute().geometry()
      .equals(directionsRoute.geometry());
  }
public static boolean isNewRoute ( @ Nullable RouteProgress previousRouteProgress , @ NonNull DirectionsRoute directionsRoute ) { return previousRouteProgress == null || ! previousRouteProgress . directionsRoute ( ) . geometry ( ) . equals ( directionsRoute . geometry ( ) ) ; }
Compares a new routeProgress geometry to a previousRouteProgress geometry to determine if the
 user is traversing along a new route.
Compares a new routeProgress geometry to a previousRouteProgress geometry to determine if the user is traversing along a new route .