All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.apis.gtfs.model.StopOnRouteModel Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.apis.gtfs.model;

import org.opentripplanner.transit.model.network.Route;
import org.opentripplanner.transit.model.site.StopLocation;

/**
 * Class that contains a {@link StopLocation} on a {@link Route}.
 */
public class StopOnRouteModel {

  /**
   * Stop that should be on the route but technically it's possible that it isn't or that it's
   * null.
   */
  private final StopLocation stop;

  /**
   * Route that should contain the stop but technically it's possible that the stop isn't on the
   * route and it's also possible that the route is null.
   */
  private final Route route;

  public StopOnRouteModel(StopLocation stop, Route route) {
    this.stop = stop;
    this.route = route;
  }

  public StopLocation getStop() {
    return stop;
  }

  public Route getRoute() {
    return route;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy