GET route/{routeName}/stops/{booking}?direction={direction}&destination={destination}

Retrieve all of AC Transit's currently active stops for a given Route.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
routeName

Retrieve stops for the specified route.

string

Required

booking

Unique id that represents a specific schedule for the peiod 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.

direction

Optional direction of the given route. For example Southbound or Northbound.

string

None.

destination

Optional destination of the given route. It should be the same as the direction returned by the actrealtime api.

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RouteStopOrder
NameDescriptionTypeAdditional information
Route

Route Name

string

None.

Direction

The direction of the line this stop serves.

string

None.

Destination

The destination of the line this stop serves.

string

None.

Stops

Collection of StopOrder

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Route": "sample string 1",
    "Direction": "sample string 2",
    "Destination": "sample string 3",
    "Stops": [
      {
        "StopId": 1,
        "Name": "sample string 2",
        "Latitude": 3.0,
        "Longitude": 4.0,
        "Order": 5
      },
      {
        "StopId": 1,
        "Name": "sample string 2",
        "Latitude": 3.0,
        "Longitude": 4.0,
        "Order": 5
      }
    ]
  },
  {
    "Route": "sample string 1",
    "Direction": "sample string 2",
    "Destination": "sample string 3",
    "Stops": [
      {
        "StopId": 1,
        "Name": "sample string 2",
        "Latitude": 3.0,
        "Longitude": 4.0,
        "Order": 5
      },
      {
        "StopId": 1,
        "Name": "sample string 2",
        "Latitude": 3.0,
        "Longitude": 4.0,
        "Order": 5
      }
    ]
  }
]

text/html

Sample:
[{"Route":"sample string 1","Direction":"sample string 2","Destination":"sample string 3","Stops":[{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"Order":5},{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"Order":5}]},{"Route":"sample string 1","Direction":"sample string 2","Destination":"sample string 3","Stops":[{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"Order":5},{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"Order":5}]}]

application/xml, text/xml

Sample:
<ArrayOfRouteStopOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <RouteStopOrder>
    <Destination>sample string 3</Destination>
    <Direction>sample string 2</Direction>
    <Route>sample string 1</Route>
    <Stops>
      <RouteStopOrder.StopOrder>
        <Latitude>3</Latitude>
        <Longitude>4</Longitude>
        <Name>sample string 2</Name>
        <Order>5</Order>
        <StopId>1</StopId>
      </RouteStopOrder.StopOrder>
      <RouteStopOrder.StopOrder>
        <Latitude>3</Latitude>
        <Longitude>4</Longitude>
        <Name>sample string 2</Name>
        <Order>5</Order>
        <StopId>1</StopId>
      </RouteStopOrder.StopOrder>
    </Stops>
  </RouteStopOrder>
  <RouteStopOrder>
    <Destination>sample string 3</Destination>
    <Direction>sample string 2</Direction>
    <Route>sample string 1</Route>
    <Stops>
      <RouteStopOrder.StopOrder>
        <Latitude>3</Latitude>
        <Longitude>4</Longitude>
        <Name>sample string 2</Name>
        <Order>5</Order>
        <StopId>1</StopId>
      </RouteStopOrder.StopOrder>
      <RouteStopOrder.StopOrder>
        <Latitude>3</Latitude>
        <Longitude>4</Longitude>
        <Name>sample string 2</Name>
        <Order>5</Order>
        <StopId>1</StopId>
      </RouteStopOrder.StopOrder>
    </Stops>
  </RouteStopOrder>
</ArrayOfRouteStopOrder>