GET routes/{booking}?sortType={sortType}
Retrieve all of AC Transit's routes.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| booking |
Unique id that represents a specific schedule for the period of time associated with the data to be retrieved. Use 'Current' or leave empty to return exceptions for the current schedule. Use 'Next' to return exceptions for the next schedule once it's available. Use BookingId to return exceptions for a specific schedule. |
string |
None. |
| sortType |
Indicates how the routes should be sorted. Default is natural sort. Options: 'Alphabetical' or 0, 'Natural' or 1 |
TransitApiRouteSortType |
Default value is Natural |
Body Parameters
None.
Response Information
Resource Description
Collection of RouteDivision| Name | Description | Type | Additional information |
|---|---|---|---|
| Division |
The division that this route belongs to |
string |
None. |
| IsLocal |
True if is a local route (non transbay), false otherwise |
boolean |
None. |
| IsTransbay |
True if is a Transbay route, false otherwise |
boolean |
None. |
| IsAllNighter |
True if it is an All Nighter route, false otherwise |
boolean |
None. |
| IsRapid |
True if it is a Rapid route, false otherwise |
boolean |
None. |
| IsSchool |
True if it is a School route, false otherwise |
boolean |
None. |
| RouteId |
Route's unique identifier |
string |
None. |
| Name |
The Route's name as seen by the public |
string |
None. |
| Description |
Additional information regarding the route. |
string |
None. |
Response Formats
application/json, text/json
[
{
"Division": "sample string 1",
"IsLocal": true,
"IsTransbay": true,
"IsAllNighter": true,
"IsRapid": true,
"IsSchool": true,
"RouteId": "sample string 7",
"Name": "sample string 8",
"Description": "sample string 9"
},
{
"Division": "sample string 1",
"IsLocal": true,
"IsTransbay": true,
"IsAllNighter": true,
"IsRapid": true,
"IsSchool": true,
"RouteId": "sample string 7",
"Name": "sample string 8",
"Description": "sample string 9"
}
]
text/html
[{"Division":"sample string 1","IsLocal":true,"IsTransbay":true,"IsAllNighter":true,"IsRapid":true,"IsSchool":true,"RouteId":"sample string 7","Name":"sample string 8","Description":"sample string 9"},{"Division":"sample string 1","IsLocal":true,"IsTransbay":true,"IsAllNighter":true,"IsRapid":true,"IsSchool":true,"RouteId":"sample string 7","Name":"sample string 8","Description":"sample string 9"}]
application/xml, text/xml
<ArrayOfRouteDivision xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
<RouteDivision>
<Description>sample string 9</Description>
<Name>sample string 8</Name>
<RouteId>sample string 7</RouteId>
<Division>sample string 1</Division>
<IsAllNighter>true</IsAllNighter>
<IsLocal>true</IsLocal>
<IsRapid>true</IsRapid>
<IsSchool>true</IsSchool>
<IsTransbay>true</IsTransbay>
</RouteDivision>
<RouteDivision>
<Description>sample string 9</Description>
<Name>sample string 8</Name>
<RouteId>sample string 7</RouteId>
<Division>sample string 1</Division>
<IsAllNighter>true</IsAllNighter>
<IsLocal>true</IsLocal>
<IsRapid>true</IsRapid>
<IsSchool>true</IsSchool>
<IsTransbay>true</IsTransbay>
</RouteDivision>
</ArrayOfRouteDivision>
