GET route/{routeName}/trips?direction={direction}&scheduleType={scheduleType}
Retrieve a list of all trips that travel along the specified route (optionally filtered by direction).
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| routeName |
The route for whose trips should be retrieved. |
string |
Required |
| direction |
Used to filter trips only to those travelling the specified direction. |
string |
Default value is |
| scheduleType |
Type of trip schedule to retrieve: Options are Weekday, Saturday and Sunday. |
TripScheduleType |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of Trip| Name | Description | Type | Additional information |
|---|---|---|---|
| TripId | integer |
None. |
|
| RouteName |
The route which this trip is currently running |
string |
None. |
| ScheduleType |
The schedule for which this trip is being run |
TripScheduleType |
None. |
| StartTime |
The scheduled start time for the trip |
date |
None. |
| Direction |
The direction the current trip is heading |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"TripId": 1,
"RouteName": "sample string 2",
"ScheduleType": 0,
"StartTime": "2026-03-01T17:44:31.4731415-08:00",
"Direction": "sample string 4"
},
{
"TripId": 1,
"RouteName": "sample string 2",
"ScheduleType": 0,
"StartTime": "2026-03-01T17:44:31.4731415-08:00",
"Direction": "sample string 4"
}
]
text/html
Sample:
[{"TripId":1,"RouteName":"sample string 2","ScheduleType":0,"StartTime":"2026-03-01T17:44:31.4731415-08:00","Direction":"sample string 4"},{"TripId":1,"RouteName":"sample string 2","ScheduleType":0,"StartTime":"2026-03-01T17:44:31.4731415-08:00","Direction":"sample string 4"}]
application/xml, text/xml
Sample:
<ArrayOfTrip xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
<Trip>
<Direction>sample string 4</Direction>
<RouteName>sample string 2</RouteName>
<ScheduleType>Weekday</ScheduleType>
<StartTime>2026-03-01T17:44:31.4731415-08:00</StartTime>
<TripId>1</TripId>
</Trip>
<Trip>
<Direction>sample string 4</Direction>
<RouteName>sample string 2</RouteName>
<ScheduleType>Weekday</ScheduleType>
<StartTime>2026-03-01T17:44:31.4731415-08:00</StartTime>
<TripId>1</TripId>
</Trip>
</ArrayOfTrip>
