GET rtpredictions
Returns the prediction information for trips on the road, and is the primary call for returning real time data. It shows the next arrivals for a particular stop, and can be filtered to show a particular route or to exclude ETS routes.
Resource URL
http://api.rgrta.com/rtpredictions
Parameters
stopid
|
Specifies the stop ID.
Example Value: 1007 |
routeid
optional
|
Specifies the route ID.
Example Value: 31 |
main
optional |
A flag to specify if the response should only return the main routes without any ETS routes. If you wish to only have main routes, this field should be set to "1".
Example Value: 1 |
Response Object
RTPrediction
Example Request
GET - http://api.rgrta.com/rtpredictions?stopid=1007
[
{
"Timestamp":"3/20/2015 10:39:09 AM",
"StopId":1007,
"StopName":"East & Alexander",
"VehicleId":1312,
"RouteId":31,
"RouteDir":"Outbound",
"ETA":"3/20/2015 11:05:00 AM",
"DestinationSign":"31 Park Ave",
"TripId":2007,
"ExternalTripId":"300760"
}
]