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

org.opentripplanner.service.realtimevehicles.RealtimeVehicleService Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.service.realtimevehicles;

import java.util.List;
import org.opentripplanner.service.realtimevehicles.model.RealtimeVehicle;
import org.opentripplanner.transit.model.network.TripPattern;
import org.opentripplanner.transit.model.timetable.OccupancyStatus;
import org.opentripplanner.transit.model.timetable.Trip;

public interface RealtimeVehicleService {
  /**
   * Get the realtime vehicles for a certain trip pattern. Service contains all the vehicles that
   * exist in input feeds but doesn't store any historical data.
   */
  List getRealtimeVehicles(TripPattern pattern);

  /**
   * Get the latest occupancy status for a certain trip. Service contains all the vehicles that
   * exist in input feeds but doesn't store any historical data.
   */
  OccupancyStatus getVehicleOccupancyStatus(Trip trip);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy