GET stoptimes
Returns a list of stop times based on the provided information.
Resource URL
http://api.rgrta.com/stops
Parameters
tripid
optional |
Specifies the Trip ID, which can be obtained from the API using the Trip methods.
Example Value: 91180 |
stopid
optional
|
Specifies the Stop ID, which is the ID found on each bus stop sign. If a Stop ID is provided, the method will return the specified stop's information.
Example Value: 12345 |
includeskipped
optional
|
Specifies that skipped stops should be displayed.
Example Value: 1 |
linedirid
optional
|
Specifies the Line Direction ID, which can be obtained from the API using the Lines methods.
Example Value: 91180
|
date
optional
|
Specifies the date you want to pull stop times on, in yyyymmdd format.
Example Value: 20130815 |
Special Notes: if includeskipped is provided, a tripid must be provided. If a linedirid is provided, a stopid must be provided. If a date is provided, a linedirid and a stopid must be provided.
Response Object
StopTime
Example Request
GET - http://api.rgrta.com/stoptimes?tripid=274450
[
{
"Sequence":35,
"TripId":274450,
"StopNum":147,
"StopId":994,
"ETime":"5:19:00"
},
{
"Sequence":36,
"TripId":274450,
"StopNum":148,
"StopId":1075,
"ETime":"5:19:31"
},
{
"Sequence":37,
"TripId":274450,
"StopNum":151,
"StopId":642,
"ETime":"5:20:00"
},
...,
{
"Sequence":94,
"TripId":274450,
"StopNum":110,
"StopId":2035,
"ETime":"5:55:00"
}
]