class DynamicCamera extends SimpleCamera {

  @Override
  public double tilt(RouteInformation routeInformation) {
    if (isShutdown) {
      return DEFAULT_TILT;
    }

    RouteProgress progress = routeInformation.routeProgress();
    if (progress != null) {
      double distanceRemaining = progress.currentLegProgress().currentStepProgress().distanceRemaining();
      return createTilt(distanceRemaining);
    }
    return super.tilt(routeInformation);
  }

  public  DynamicCamera(@NonNull MapboxMap mapboxMap);

}