public class GtfsRtTripFeed
extends java.lang.Object
Note: for the trip feed predictions that are schedule based instead of GPS based the StopTimeEvent uncertainty is set to SCHED_BASED_PRED_UNCERTAINTY_VALUE so that the client can treat the prediction differently. If a vehicle is delayed and not moving then uncertainty is set to DELAYED_UNCERTAINTY_VALUE. And if a vehicle is late and the prediction is for a subsequent trip then uncertainty is set to LATE_AND_SUBSEQUENT_TRIP_UNCERTAINTY_VALUE.
Constructor and Description |
---|
GtfsRtTripFeed(java.lang.String agencyId)
Member Functions
|
Modifier and Type | Method and Description |
---|---|
com.google.transit.realtime.GtfsRealtime.FeedMessage |
createMessage()
Gets the Vehicle data from RMI and creates corresponding
GTFS-RT vehicle feed.
|
static com.google.transit.realtime.GtfsRealtime.FeedMessage |
getPossiblyCachedMessage(java.lang.String agencyId,
int cacheTime)
For caching Vehicle Positions feed messages.
|
public com.google.transit.realtime.GtfsRealtime.FeedMessage createMessage()
public static com.google.transit.realtime.GtfsRealtime.FeedMessage getPossiblyCachedMessage(java.lang.String agencyId, int cacheTime)
agencyId
- cacheTime
-