Class AgencyServiceImpl
- java.lang.Object
-
- org.onebusaway.transit_data_federation.impl.AgencyServiceImpl
-
- All Implemented Interfaces:
AgencyService
@Component public class AgencyServiceImpl extends Object implements AgencyService
-
-
Constructor Summary
Constructors Constructor Description AgencyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,CoordinatePoint>
getAgencyIdsAndCenterPoints()
For each agency in a transit bundle, computes the center point of all the stops operated by that agency.Map<String,CoordinateBounds>
getAgencyIdsAndCoverageAreas()
For each agency in a transit bundle, computes the coordinate bounds of all the stops operated by that agency.List<String>
getAllAgencyIds()
TimeZone
getTimeZoneForAgencyId(String agencyId)
SeeAgency.getTimezone()
.
-
-
-
Method Detail
-
getTimeZoneForAgencyId
public TimeZone getTimeZoneForAgencyId(String agencyId)
Description copied from interface:AgencyService
SeeAgency.getTimezone()
.- Specified by:
getTimeZoneForAgencyId
in interfaceAgencyService
- Parameters:
agencyId
- the id of the target agency- Returns:
- the instantiated timezone object for the specified agencyId
-
getAllAgencyIds
public List<String> getAllAgencyIds()
- Specified by:
getAllAgencyIds
in interfaceAgencyService
-
getAgencyIdsAndCenterPoints
public Map<String,CoordinatePoint> getAgencyIdsAndCenterPoints()
Description copied from interface:AgencyService
For each agency in a transit bundle, computes the center point of all the stops operated by that agency.- Specified by:
getAgencyIdsAndCenterPoints
in interfaceAgencyService
- Returns:
- the center point of all stops operated by each agency, keyed by agency id
-
getAgencyIdsAndCoverageAreas
public Map<String,CoordinateBounds> getAgencyIdsAndCoverageAreas()
Description copied from interface:AgencyService
For each agency in a transit bundle, computes the coordinate bounds of all the stops operated by that agency.- Specified by:
getAgencyIdsAndCoverageAreas
in interfaceAgencyService
- Returns:
- the coordinate bounds of all stops operated by each agency, keyed by agency id
-
-