org.onebusaway.transit_data_federation.services
Interface RouteService


public interface RouteService

Service methods for querying RouteEntry and RouteCollectionEntry objects.

Author:
bdferris

Method Summary
 Set<org.onebusaway.gtfs.model.AgencyAndId> getRouteCollectionIdsForStop(org.onebusaway.gtfs.model.AgencyAndId stopId)
          Return the set of route collection ids serving the specified stop.
 Collection<org.onebusaway.gtfs.model.AgencyAndId> getStopsForRouteCollection(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
          Joins over the relation RouteCollectionEntry -> RouteEntry -> TripEntry -> StopTimeEntry -> StopEntry, constructing the unique set of stops.
 

Method Detail

getStopsForRouteCollection

Collection<org.onebusaway.gtfs.model.AgencyAndId> getStopsForRouteCollection(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
Joins over the relation RouteCollectionEntry -> RouteEntry -> TripEntry -> StopTimeEntry -> StopEntry, constructing the unique set of stops.

Parameters:
routeCollectionId - the RouteCollectionEntry id
Returns:
the set of all stop ids for stops servicing the particular route collection

getRouteCollectionIdsForStop

Set<org.onebusaway.gtfs.model.AgencyAndId> getRouteCollectionIdsForStop(org.onebusaway.gtfs.model.AgencyAndId stopId)
Return the set of route collection ids serving the specified stop.

Parameters:
stopId -
Returns:
the set of of route collection ids


Copyright © 2012 OneBusAway. All Rights Reserved.