Back

GET api/V1/Schedule/Line/{Date}/{LineCode}/{LineDirection}

Displays Line detail based on date, line code and direction

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
Date

Date of interest (yyyymmdd)

string

Default value is

LineCode

Line Code of interest

string

Default value is

LineDirection

Line Direction of interest

string

Default value is

Body Parameters

None.

Response Information

Resource Description

The trips and their stops for the date, line and line direction given

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "Lines": {
    "Line": [
      {
        "Code": "sample string 1",
        "Direction": "sample string 2",
        "Type": "sample string 3",
        "Trip": [
          {
            "Number": "sample string 1",
            "Display": "sample string 2",
            "Stops": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              }
            ]
          },
          {
            "Number": "sample string 1",
            "Display": "sample string 2",
            "Stops": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              }
            ]
          }
        ]
      },
      {
        "Code": "sample string 1",
        "Direction": "sample string 2",
        "Type": "sample string 3",
        "Trip": [
          {
            "Number": "sample string 1",
            "Display": "sample string 2",
            "Stops": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              }
            ]
          },
          {
            "Number": "sample string 1",
            "Display": "sample string 2",
            "Stops": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3",
                "sortingTime": "sample string 4",
                "IsMajor": true
              }
            ]
          }
        ]
      }
    ]
  }
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <Lines>
    <Line Code="sample string 1" Direction="sample string 2" Type="sample string 3">
      <Trip Number="sample string 1" Display="sample string 2">
        <Stops>
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
        </Stops>
      </Trip>
      <Trip Number="sample string 1" Display="sample string 2">
        <Stops>
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
        </Stops>
      </Trip>
    </Line>
    <Line Code="sample string 1" Direction="sample string 2" Type="sample string 3">
      <Trip Number="sample string 1" Display="sample string 2">
        <Stops>
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
        </Stops>
      </Trip>
      <Trip Number="sample string 1" Display="sample string 2">
        <Stops>
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
          <Stop Code="sample string 1" Order="2" Time="sample string 3" IsMajor="true" />
        </Stops>
      </Trip>
    </Line>
  </Lines>
</Result>