org.onebusaway.transit_data_federation.services.beans
Interface ArrivalsAndDeparturesBeanService
- All Known Implementing Classes:
- ArrivalsAndDeparturesBeanServiceImpl
public interface ArrivalsAndDeparturesBeanService
Service for querying arrivals and departures at a particular stop in a given
time range
- Author:
- bdferris
- See Also:
ArrivalAndDepartureBean
getArrivalsAndDeparturesByStopId
List<ArrivalAndDepartureBean> getArrivalsAndDeparturesByStopId(org.onebusaway.gtfs.model.AgencyAndId stopId,
ArrivalsAndDeparturesQueryBean query)
- Parameters:
stopId
- see Stop.getId()
timeFrom
- timeTo
-
- Returns:
- the list of arrival and departure beans for the specified stop in
the specified time range
getArrivalAndDepartureForStop
ArrivalAndDepartureBean getArrivalAndDepartureForStop(ArrivalAndDepartureQuery query)
- Return arrival and departure information for a single trip instance
arriving and departing a particular stop.
- Parameters:
stopId
- the target stop idtripId
- the target tripIdserviceDate
- the target service datevehicleId
- optionally specify a particular vehicle id, or nulltime
- the time to query
- Returns:
- the arrival and departure information, or null if not found
Copyright © 2012 OneBusAway. All Rights Reserved.