libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/route/RouteViewModel.java
private void cacheRouteDestination() {
    if (routeOptions != null && !routeOptions.coordinates().isEmpty()) {
      List<Point> coordinates = routeOptions.coordinates();
      int destinationCoordinate = coordinates.size() - 1;
      Point destinationPoint = coordinates.get(destinationCoordinate);
      destination.setValue(destinationPoint);
    }
  }
/**
   * Looks at the given {@link DirectionsRoute} and extracts the destination based on
   * the last {@link LegStep} maneuver.
   */
Looks at the given  DirectionsRoute and extracts the destination based on
the last  LegStep maneuver.
Looks at the given DirectionsRoute and extracts the destination based on the last LegStep maneuver .
private void cacheRouteDestination() {
    if (routeOptions != null && !routeOptions.coordinates().isEmpty()) {
      List<Point> coordinates = routeOptions.coordinates();
      int destinationCoordinate = coordinates.size() - 1;
      Point destinationPoint = coordinates.get(destinationCoordinate);
      destination.setValue(destinationPoint);
    }
  }
private void cacheRouteDestination ( ) { if ( routeOptions != null && ! routeOptions . coordinates ( ) . isEmpty ( ) ) { List < Point > coordinates = routeOptions . coordinates ( ) ; int destinationCoordinate = coordinates . size ( ) - 1 ; Point destinationPoint = coordinates . get ( destinationCoordinate ) ; destination . setValue ( destinationPoint ) ; } }
Looks at the given {@link DirectionsRoute} and extracts the destination based on
 the last {@link LegStep} maneuver.
Looks at the given { @link DirectionsRoute } and extracts the destination based on the last { @link LegStep } maneuver .