org.onebusaway.federations
public interface FederatedServiceCollection
FederatedService
instances. Provides interface for
querying instances by agency id and geographic location. A basic
implementation can be found in FederatedServiceCollectionImpl
, which
takes a map of FederatedService
instances and provides the require
querying mechanims.
More powerful implementations exist as well. The
DynamicFederatedServiceCollectionImpl
is backed by a
FederatedServiceRegistry
to dynamically update the set of available
FederatedService
instances, potentially from a remote source.FederatedServiceCollectionImpl
,
DynamicFederatedServiceCollectionImpl
Modifier and Type | Method and Description |
---|---|
Set<FederatedService> |
getAllServices() |
FederatedService |
getServiceForAgencyId(String agencyId) |
FederatedService |
getServiceForAgencyIds(Iterable<String> agencyIds) |
FederatedService |
getServiceForBounds(CoordinateBounds bounds) |
FederatedService |
getServiceForBounds(double lat1,
double lon1,
double lat2,
double lon2) |
FederatedService |
getServiceForLocation(double lat,
double lon) |
FederatedService |
getServiceForLocations(List<CoordinatePoint> points) |
Set<FederatedService> getAllServices()
FederatedService getServiceForAgencyId(String agencyId) throws ServiceAreaServiceException
ServiceAreaServiceException
FederatedService getServiceForAgencyIds(Iterable<String> agencyIds) throws ServiceAreaServiceException
ServiceAreaServiceException
FederatedService getServiceForBounds(CoordinateBounds bounds) throws ServiceAreaServiceException
ServiceAreaServiceException
FederatedService getServiceForBounds(double lat1, double lon1, double lat2, double lon2) throws ServiceAreaServiceException
ServiceAreaServiceException
FederatedService getServiceForLocation(double lat, double lon) throws ServiceAreaServiceException
ServiceAreaServiceException
FederatedService getServiceForLocations(List<CoordinatePoint> points) throws ServiceAreaServiceException
ServiceAreaServiceException
Copyright © 2014 OneBusAway. All Rights Reserved.