Search for trips
Request
- Base URL: https://transit.land/api/v2/rest
- URL: https://transit.land/api/v2/rest/routes/{route_key}/trips
- Auth: none declared
Path parameters
Route lookup key; can be an integer ID, a '<feed onestop_id>:<gtfs route_id>' key, or a Onestop ID
Query parameters
Search for trips active on this date
Search for records with this GTFS trip_id
Include shape geometry
Use a fall-back service date if the requested service_date is outside the active service period of the feed version. The fall-back date is selected as the matching day-of-week in the week which provides the best level of scheduled service in the feed version. This value defaults to true.
Search for departures on a relative date label, e.g. TODAY, TUESDAY, NEXT_WEDNESDAY
Include alerts from GTFS Realtime feeds
Search for a specific internal ID
Pagination cursor value. This should be treated as an opaque value created by the server and returned as the link to the next result page, which may be empty. For historical reasons, this is based on the integer record ID values, but that should not be assumed to be the case in the future.
Maximum number of records to return
Response format
Search for records in this feed version
Search for records in this feed
Latitude
Longitude
Filter entities by feed license 'commercial_use_allowed' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'share_alike_optional' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'create_derived_product' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'redistribution_allowed' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'use_without_attribution' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Response
ok
Example response
{
"trips": [
{
"alerts": [
{
"informed_entity": [
{
"trip": {
"start_date": "2019-11-15",
"start_time": "15:21:04"
}
}
]
}
],
"calendar": {
"added_dates": [
"2019-11-15"
],
"end_date": "2019-11-15",
"removed_dates": [
"2019-11-15"
],
"start_date": "2019-11-15"
},
"feed_version": {
"fetched_at": "2019-11-15T00:45:55.409906",
"sha1": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a"
},
"frequencies": [
{
"end_time": "15:21:04",
"start_time": "15:21:04"
}
],
"route": {
"agency": {
"alerts": [
{
"informed_entity": [
{
"trip": {
"start_date": "2019-11-15",
"start_time": "15:21:04"
}
}
]
}
]
},
"alerts": [
{
"informed_entity": [
{
"trip": {
"start_date": "2019-11-15",
"start_time": "15:21:04"
}
}
]
}
]
},
"stop_times": [
{
"arrival_time": "15:21:04",
"departure_time": "15:21:04",
"stop": {
"alerts": [
{
"informed_entity": [
{
"trip": {
"start_date": "2019-11-15",
"start_time": "15:21:04"
}
}
]
}
],
"stop_id": "400029",
"stop_name": "MADISON AV/E 68 ST"
}
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.