public interface PredictionsInterface
extends java.rmi.Remote
Modifier and Type | Interface and Description |
---|---|
static class |
PredictionsInterface.RouteStop
This class is for use as key into hash maps that store prediction data.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IpcPredictionsForRouteStopDest> |
get(java.util.List<PredictionsInterface.RouteStop> routeStops,
int predictionsPerStop)
For each route/stop specified returns a list of predictions for that
stop.
|
java.util.List<IpcPredictionsForRouteStopDest> |
get(Location loc,
double maxDistance,
int predictionsPerStop)
Returns predictions based on the specified location.
|
java.util.List<IpcPredictionsForRouteStopDest> |
get(java.lang.String routeShortName,
java.lang.String stopId,
int predictionsPerStop)
Returns list of current predictions for the specified route/stop.
|
java.util.List<IpcPredictionsForRouteStopDest> |
getAllPredictions(int predictionMaxFutureSecs)
Returns all predictions.
|
java.util.List<IpcPredictionsForRouteStopDest> get(java.lang.String routeShortName, java.lang.String stopId, int predictionsPerStop) throws java.rmi.RemoteException
routeIdOrShortName
- Can be either the GTFS route_id or the route_short_name.stopId
- predictionsPerStop
- Max number of predictions to return for route/stopjava.rmi.RemoteException
java.util.List<IpcPredictionsForRouteStopDest> get(java.util.List<PredictionsInterface.RouteStop> routeStops, int predictionsPerStop) throws java.rmi.RemoteException
routeStops
- List of route/stops to return predictions for. Uses route
short name or route IDpredictionsPerStop
- Max number of predictions to return per route/stopjava.rmi.RemoteException
java.util.List<IpcPredictionsForRouteStopDest> get(Location loc, double maxDistance, int predictionsPerStop) throws java.rmi.RemoteException
loc
- The user's locationmaxDistance
- How far a stop can be away from the locpredictionsPerStop
- java.rmi.RemoteException
java.util.List<IpcPredictionsForRouteStopDest> getAllPredictions(int predictionMaxFutureSecs) throws java.rmi.RemoteException
predictionMaxFutureSecs
- java.rmi.RemoteException