|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockLocationService
Service methods for accessing/interpolating the position of a transit vehicle give a trip instance and target time.
Method Summary | |
---|---|
BlockLocation |
getLocationForBlockInstance(BlockInstance blockInstance,
TargetTime time)
Given a block instance and a target time, determine the vehicle position at that time, using real-time data when available. |
BlockLocation |
getLocationForBlockInstanceAndScheduledBlockLocation(BlockInstance blockInstance,
ScheduledBlockLocation scheduledLocation,
long targetTime)
|
BlockLocation |
getLocationForVehicleAndTime(org.onebusaway.gtfs.model.AgencyAndId vehicleId,
TargetTime time)
|
Map<org.onebusaway.gtfs.model.AgencyAndId,List<BlockLocation>> |
getLocationsForBlockInstance(BlockInstance blockInstance,
List<Date> times,
long currentTime)
|
List<BlockLocation> |
getLocationsForBlockInstance(BlockInstance blockInstance,
TargetTime time)
Given a block instance and a target time, determine the vehicle locations at that time using real-time data when available. |
BlockLocation |
getScheduledLocationForBlockInstance(BlockInstance blockInstance,
long targetTime)
Determines the scheduled vehicle location of a given block instance at the specified time. |
Method Detail |
---|
BlockLocation getLocationForBlockInstance(BlockInstance blockInstance, TargetTime time)
blockInstance
- the block instance to querytime
- the target time (Unix-time)
Map<org.onebusaway.gtfs.model.AgencyAndId,List<BlockLocation>> getLocationsForBlockInstance(BlockInstance blockInstance, List<Date> times, long currentTime)
BlockLocation getLocationForBlockInstanceAndScheduledBlockLocation(BlockInstance blockInstance, ScheduledBlockLocation scheduledLocation, long targetTime)
List<BlockLocation> getLocationsForBlockInstance(BlockInstance blockInstance, TargetTime time)
blockInstance
- the trip instance to querytime
- TODO
BlockLocation getScheduledLocationForBlockInstance(BlockInstance blockInstance, long targetTime)
blockInstance
- targetTime
-
BlockLocation getLocationForVehicleAndTime(org.onebusaway.gtfs.model.AgencyAndId vehicleId, TargetTime time)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |