GET trips
Returns a list of trips based on the provided information.
Resource URL
http://api.rgrta.com/trips
Parameters
tripid
optional
|
Specifies the Trip ID, which is determined through this interface. To find the Trip ID you wish to reference, you can pull the trip information and view the data.
Example Value: 12345 |
linedirid
optional |
Specifies the Line Direction ID, which can be obtained from the API using the Lines methods.
Example Value: 91180 |
date
optional
|
The date of the trip, in yyyymmdd format.
Example Value: 20130815 |
Special Note: if a linedirid is provided, a tripid cannot be provided. If a date is provided, a linedirid must be provided.
Response Object
Trip
Example Request
GET - http://api.rgrta.com/trips?tripid=274450
[
{
"TripId":274450,
"SignId":62,
"DivisionId":2,
"ServiceId":1,
"LineDirId":110220,
"TripSort":20400,
"PatternId":84230,
"ServiceGroupId":1,
"LineGroupId":11912,
"FromTime":"5:19:00",
"ToTime":"5:55:00",
"FromStopNum":147,
"ToStopNum":110,
"BlockName":"104",
"BlockNum":104,
"VehicleBlockNum":104,
"BlockId":35182,
"TripNum":10101,
"ExcComboId":0
}
]