|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockStatusService
Service methods for querying the real-time status and position of a particular block of trips.
BlockLocation
Method Summary | |
---|---|
List<BlockLocation> |
getActiveBlocksForAgency(String agencyId,
long time)
Returns all active blocks for the specified agency, both with and without real-time information. |
List<BlockLocation> |
getAllActiveBlocks(long time)
Returns all active blocks, both with and without real-time information. |
BlockLocation |
getBlockForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId,
long time)
|
Map<BlockInstance,List<BlockLocation>> |
getBlocks(org.onebusaway.gtfs.model.AgencyAndId blockId,
long serviceDate,
org.onebusaway.gtfs.model.AgencyAndId vehicleId,
long time)
|
List<BlockLocation> |
getBlocksForBounds(CoordinateBounds bounds,
long time)
|
Map<BlockInstance,List<List<BlockLocation>>> |
getBlocksForIndex(BlockSequenceIndex index,
List<Date> timetamps)
|
List<BlockLocation> |
getBlocksForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId,
long time)
Returns all active blocks for the specified route, both with and without real-time information. |
Method Detail |
---|
Map<BlockInstance,List<BlockLocation>> getBlocks(org.onebusaway.gtfs.model.AgencyAndId blockId, long serviceDate, org.onebusaway.gtfs.model.AgencyAndId vehicleId, long time)
blockId
- see Trip.getBlockId()
serviceDate
- the service date the block is operating under
(Unix-time)vehicleId
- TODOtime
- the time of operation to query
BlockLocation getBlockForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId, long time)
vehicleId
- time
- detailsInclusionBean
- controls what will be included in the response
List<BlockLocation> getAllActiveBlocks(long time)
time
- only blocks active at the specified time will be returned
List<BlockLocation> getActiveBlocksForAgency(String agencyId, long time)
agencyId
- only blocks with the specified agency id will be returnedtime
- only blocks active at the specified time will be returned
List<BlockLocation> getBlocksForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId, long time)
routeId
- only blocks with the specified route id will be returnedtime
- only blocks active at the specified time will be returned
Map<BlockInstance,List<List<BlockLocation>>> getBlocksForIndex(BlockSequenceIndex index, List<Date> timetamps)
index
- timetamps
-
List<BlockLocation> getBlocksForBounds(CoordinateBounds bounds, long time)
query
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |