Back

GET api/V1/ServiceUpdate/UnionDepartures/All

Displays The nearest departures for buses and trains from Union Station

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

All departures and all related trips and their stops

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "AllDepartures": {
    "Trip": [
      {
        "Info": "sample string 1",
        "TripNumber": "sample string 2",
        "Platform": "sample string 3",
        "Service": "sample string 4",
        "ServiceType": "sample string 5",
        "Time": "",
        "Stops": [
          {
            "Name": "sample string 1",
            "Code": "sample string 2"
          },
          {
            "Name": "sample string 1",
            "Code": "sample string 2"
          }
        ]
      },
      {
        "Info": "sample string 1",
        "TripNumber": "sample string 2",
        "Platform": "sample string 3",
        "Service": "sample string 4",
        "ServiceType": "sample string 5",
        "Time": "",
        "Stops": [
          {
            "Name": "sample string 1",
            "Code": "sample string 2"
          },
          {
            "Name": "sample string 1",
            "Code": "sample string 2"
          }
        ]
      }
    ]
  }
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <AllDepartures>
    <Trip Info="sample string 1" TripNumber="sample string 2" Platform="sample string 3" Service="sample string 4" ServiceType="sample string 5" Time="">
      <Stops>
        <Stop Name="sample string 1" Code="sample string 2" />
        <Stop Name="sample string 1" Code="sample string 2" />
      </Stops>
    </Trip>
    <Trip Info="sample string 1" TripNumber="sample string 2" Platform="sample string 3" Service="sample string 4" ServiceType="sample string 5" Time="">
      <Stops>
        <Stop Name="sample string 1" Code="sample string 2" />
        <Stop Name="sample string 1" Code="sample string 2" />
      </Stops>
    </Trip>
  </AllDepartures>
</Result>