GET route/{routes}/timetable/{direction}?dayCode={dayCode}&hasAllStops={hasAllStops}

Retrieve the timetable for a given route

Request Information

URI Parameters

NameDescriptionTypeAdditional information
routes

The route for the timetable (comma delimited)

string

Required

direction

The optional direction or destination for the timetable.

string

None.

dayCode

The optional day code (Weekday, Saturday, Sunday) (default today detected).

string

None.

hasAllStops

Optional flag to show all stops, not just major places (default false) (bigger dataset when true).

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

Collection of TimeTable
NameDescriptionTypeAdditional information
BookingId

string

None.

RouteId

string

None.

Destination

string

None.

Direction

string

None.

DayCode

string

None.

Stops

Collection of TimeTableStop

None.

Trips

Collection of TimeTableTrip

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "BookingId": "sample string 1",
    "RouteId": "sample string 2",
    "Destination": "sample string 3",
    "Direction": "sample string 4",
    "DayCode": "sample string 5",
    "Stops": [
      {
        "StopId": 1,
        "StopDescription": "sample string 2",
        "PlaceId": "sample string 3",
        "StopLongitude": 4.0,
        "StopLatitude": 5.0
      },
      {
        "StopId": 1,
        "StopDescription": "sample string 2",
        "PlaceId": "sample string 3",
        "StopLongitude": 4.0,
        "StopLatitude": 5.0
      }
    ],
    "Trips": [
      {
        "TripStartTime": "2022-06-28T08:39:30.0802635-07:00",
        "TripId": 2,
        "TripDestination": "sample string 3",
        "TripStops": [
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          },
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          }
        ]
      },
      {
        "TripStartTime": "2022-06-28T08:39:30.0802635-07:00",
        "TripId": 2,
        "TripDestination": "sample string 3",
        "TripStops": [
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          },
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          }
        ]
      }
    ]
  },
  {
    "BookingId": "sample string 1",
    "RouteId": "sample string 2",
    "Destination": "sample string 3",
    "Direction": "sample string 4",
    "DayCode": "sample string 5",
    "Stops": [
      {
        "StopId": 1,
        "StopDescription": "sample string 2",
        "PlaceId": "sample string 3",
        "StopLongitude": 4.0,
        "StopLatitude": 5.0
      },
      {
        "StopId": 1,
        "StopDescription": "sample string 2",
        "PlaceId": "sample string 3",
        "StopLongitude": 4.0,
        "StopLatitude": 5.0
      }
    ],
    "Trips": [
      {
        "TripStartTime": "2022-06-28T08:39:30.0802635-07:00",
        "TripId": 2,
        "TripDestination": "sample string 3",
        "TripStops": [
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          },
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          }
        ]
      },
      {
        "TripStartTime": "2022-06-28T08:39:30.0802635-07:00",
        "TripId": 2,
        "TripDestination": "sample string 3",
        "TripStops": [
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          },
          {
            "StopId": 1,
            "PassingTime": "2022-06-28T08:39:30.0802635-07:00"
          }
        ]
      }
    ]
  }
]

text/html

Sample:
[{"BookingId":"sample string 1","RouteId":"sample string 2","Destination":"sample string 3","Direction":"sample string 4","DayCode":"sample string 5","Stops":[{"StopId":1,"StopDescription":"sample string 2","PlaceId":"sample string 3","StopLongitude":4.0,"StopLatitude":5.0},{"StopId":1,"StopDescription":"sample string 2","PlaceId":"sample string 3","StopLongitude":4.0,"StopLatitude":5.0}],"Trips":[{"TripStartTime":"2022-06-28T08:39:30.0802635-07:00","TripId":2,"TripDestination":"sample string 3","TripStops":[{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"},{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"}]},{"TripStartTime":"2022-06-28T08:39:30.0802635-07:00","TripId":2,"TripDestination":"sample string 3","TripStops":[{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"},{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"}]}]},{"BookingId":"sample string 1","RouteId":"sample string 2","Destination":"sample string 3","Direction":"sample string 4","DayCode":"sample string 5","Stops":[{"StopId":1,"StopDescription":"sample string 2","PlaceId":"sample string 3","StopLongitude":4.0,"StopLatitude":5.0},{"StopId":1,"StopDescription":"sample string 2","PlaceId":"sample string 3","StopLongitude":4.0,"StopLatitude":5.0}],"Trips":[{"TripStartTime":"2022-06-28T08:39:30.0802635-07:00","TripId":2,"TripDestination":"sample string 3","TripStops":[{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"},{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"}]},{"TripStartTime":"2022-06-28T08:39:30.0802635-07:00","TripId":2,"TripDestination":"sample string 3","TripStops":[{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"},{"StopId":1,"PassingTime":"2022-06-28T08:39:30.0802635-07:00"}]}]}]

application/xml, text/xml

Sample:
<ArrayOfTimeTable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <TimeTable>
    <BookingId>sample string 1</BookingId>
    <DayCode>sample string 5</DayCode>
    <Destination>sample string 3</Destination>
    <Direction>sample string 4</Direction>
    <RouteId>sample string 2</RouteId>
    <Stops>
      <TimeTableStop>
        <PlaceId>sample string 3</PlaceId>
        <StopDescription>sample string 2</StopDescription>
        <StopId>1</StopId>
        <StopLatitude>5</StopLatitude>
        <StopLongitude>4</StopLongitude>
      </TimeTableStop>
      <TimeTableStop>
        <PlaceId>sample string 3</PlaceId>
        <StopDescription>sample string 2</StopDescription>
        <StopId>1</StopId>
        <StopLatitude>5</StopLatitude>
        <StopLongitude>4</StopLongitude>
      </TimeTableStop>
    </Stops>
    <Trips>
      <TimeTableTrip>
        <TripDestination>sample string 3</TripDestination>
        <TripId>2</TripId>
        <TripStartTime>2022-06-28T08:39:30.0802635-07:00</TripStartTime>
        <TripStops>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
        </TripStops>
      </TimeTableTrip>
      <TimeTableTrip>
        <TripDestination>sample string 3</TripDestination>
        <TripId>2</TripId>
        <TripStartTime>2022-06-28T08:39:30.0802635-07:00</TripStartTime>
        <TripStops>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
        </TripStops>
      </TimeTableTrip>
    </Trips>
  </TimeTable>
  <TimeTable>
    <BookingId>sample string 1</BookingId>
    <DayCode>sample string 5</DayCode>
    <Destination>sample string 3</Destination>
    <Direction>sample string 4</Direction>
    <RouteId>sample string 2</RouteId>
    <Stops>
      <TimeTableStop>
        <PlaceId>sample string 3</PlaceId>
        <StopDescription>sample string 2</StopDescription>
        <StopId>1</StopId>
        <StopLatitude>5</StopLatitude>
        <StopLongitude>4</StopLongitude>
      </TimeTableStop>
      <TimeTableStop>
        <PlaceId>sample string 3</PlaceId>
        <StopDescription>sample string 2</StopDescription>
        <StopId>1</StopId>
        <StopLatitude>5</StopLatitude>
        <StopLongitude>4</StopLongitude>
      </TimeTableStop>
    </Stops>
    <Trips>
      <TimeTableTrip>
        <TripDestination>sample string 3</TripDestination>
        <TripId>2</TripId>
        <TripStartTime>2022-06-28T08:39:30.0802635-07:00</TripStartTime>
        <TripStops>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
        </TripStops>
      </TimeTableTrip>
      <TimeTableTrip>
        <TripDestination>sample string 3</TripDestination>
        <TripId>2</TripId>
        <TripStartTime>2022-06-28T08:39:30.0802635-07:00</TripStartTime>
        <TripStops>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
          <TimeTableTripStop>
            <PassingTime>2022-06-28T08:39:30.0802635-07:00</PassingTime>
            <StopId>1</StopId>
          </TimeTableTripStop>
        </TripStops>
      </TimeTableTrip>
    </Trips>
  </TimeTable>
</ArrayOfTimeTable>