Back

GET api/V1/Schedule/Trip/{Date}/{TripNumber}

Displays The trip stops in effect for the given trip number and date

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
Date

Date of interest (yyyymmdd)

string

Default value is

TripNumber

Trip Number

string

Default value is

Body Parameters

None.

Response Information

Resource Description

Stops for the date, and trip number given.

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "Trips": [
    {
      "Number": "sample string 1",
      "Destination": "sample string 2",
      "Longitude": 3.1,
      "Latitude": 4.1,
      "Status": "sample string 5",
      "TimeStamp": "sample string 6",
      "Stops": [
        {
          "ArrivalTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "DepartureTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "Track": {
            "Scheduled": "sample string 1",
            "Actual": "sample string 2"
          },
          "Code": "sample string 1",
          "Status": "sample string 2",
          "Remark": "sample string 3"
        },
        {
          "ArrivalTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "DepartureTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "Track": {
            "Scheduled": "sample string 1",
            "Actual": "sample string 2"
          },
          "Code": "sample string 1",
          "Status": "sample string 2",
          "Remark": "sample string 3"
        }
      ]
    },
    {
      "Number": "sample string 1",
      "Destination": "sample string 2",
      "Longitude": 3.1,
      "Latitude": 4.1,
      "Status": "sample string 5",
      "TimeStamp": "sample string 6",
      "Stops": [
        {
          "ArrivalTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "DepartureTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "Track": {
            "Scheduled": "sample string 1",
            "Actual": "sample string 2"
          },
          "Code": "sample string 1",
          "Status": "sample string 2",
          "Remark": "sample string 3"
        },
        {
          "ArrivalTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "DepartureTime": {
            "Scheduled": "sample string 1",
            "Computed": "sample string 2",
            "Status": "sample string 3"
          },
          "Track": {
            "Scheduled": "sample string 1",
            "Actual": "sample string 2"
          },
          "Code": "sample string 1",
          "Status": "sample string 2",
          "Remark": "sample string 3"
        }
      ]
    }
  ]
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <Trips>
    <Trip Number="sample string 1" Destination="sample string 2" Longitude="3.1" Latitude="4.1" Status="sample string 5" UpdateTime="sample string 6">
      <Stops>
        <Stop Code="sample string 1" Status="sample string 2" Remark="sample string 3">
          <ArrivalTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <DepartureTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <Track Scheduled="sample string 1" Actual="sample string 2" />
        </Stop>
        <Stop Code="sample string 1" Status="sample string 2" Remark="sample string 3">
          <ArrivalTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <DepartureTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <Track Scheduled="sample string 1" Actual="sample string 2" />
        </Stop>
      </Stops>
    </Trip>
    <Trip Number="sample string 1" Destination="sample string 2" Longitude="3.1" Latitude="4.1" Status="sample string 5" UpdateTime="sample string 6">
      <Stops>
        <Stop Code="sample string 1" Status="sample string 2" Remark="sample string 3">
          <ArrivalTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <DepartureTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <Track Scheduled="sample string 1" Actual="sample string 2" />
        </Stop>
        <Stop Code="sample string 1" Status="sample string 2" Remark="sample string 3">
          <ArrivalTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <DepartureTime Scheduled="sample string 1" Computed="sample string 2" Status="sample string 3" />
          <Track Scheduled="sample string 1" Actual="sample string 2" />
        </Stop>
      </Stops>
    </Trip>
  </Trips>
</Result>