Back

GET api/V1/Schedule/Journey/{Date}/{FromStopCode}/{ToStopCode}/{StartTime}/{MaxJourney}

Displays A Journey’s lines (rail corridor and bus routes), trips, stops and transfers.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
Date

Date of journey (yyyymmdd)

string

Default value is

FromStopCode

Departure stop

string

Default value is

ToStopCode

Destination stop

string

Default value is

StartTime

Time of day (e.g., 0900 means 9:00 am)

string

Default value is

MaxJourney

Maximum number of Journeys to return (defaults to 3)

string

Default value is 3

Body Parameters

None.

Response Information

Resource Description

A journey and its date, departure and destination stops and start time.

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "SchJourneys": [
    {
      "Date": "sample string 1",
      "Time": "sample string 2",
      "To": "sample string 3",
      "From": "sample string 4",
      "Services": [
        {
          "Colour": "sample string 1",
          "Type": "sample string 2",
          "Direction": "sample string 3",
          "Code": "sample string 4",
          "StartTime": "sample string 5",
          "EndTime": "sample string 6",
          "Duration": "sample string 7",
          "Accessible": "sample string 8",
          "Trips": {
            "Trip": [
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              },
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              }
            ]
          },
          "Transfers": {
            "Transfer": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              }
            ]
          },
          "TransferLinks": {
            "Link": [
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              },
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              }
            ]
          },
          "StartSortTime": "sample string 9",
          "EndSortTime": "sample string 10",
          "tripHash": "sample string 11",
          "transferCount": 2
        },
        {
          "Colour": "sample string 1",
          "Type": "sample string 2",
          "Direction": "sample string 3",
          "Code": "sample string 4",
          "StartTime": "sample string 5",
          "EndTime": "sample string 6",
          "Duration": "sample string 7",
          "Accessible": "sample string 8",
          "Trips": {
            "Trip": [
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              },
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              }
            ]
          },
          "Transfers": {
            "Transfer": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              }
            ]
          },
          "TransferLinks": {
            "Link": [
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              },
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              }
            ]
          },
          "StartSortTime": "sample string 9",
          "EndSortTime": "sample string 10",
          "tripHash": "sample string 11",
          "transferCount": 2
        }
      ]
    },
    {
      "Date": "sample string 1",
      "Time": "sample string 2",
      "To": "sample string 3",
      "From": "sample string 4",
      "Services": [
        {
          "Colour": "sample string 1",
          "Type": "sample string 2",
          "Direction": "sample string 3",
          "Code": "sample string 4",
          "StartTime": "sample string 5",
          "EndTime": "sample string 6",
          "Duration": "sample string 7",
          "Accessible": "sample string 8",
          "Trips": {
            "Trip": [
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              },
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              }
            ]
          },
          "Transfers": {
            "Transfer": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              }
            ]
          },
          "TransferLinks": {
            "Link": [
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              },
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              }
            ]
          },
          "StartSortTime": "sample string 9",
          "EndSortTime": "sample string 10",
          "tripHash": "sample string 11",
          "transferCount": 2
        },
        {
          "Colour": "sample string 1",
          "Type": "sample string 2",
          "Direction": "sample string 3",
          "Code": "sample string 4",
          "StartTime": "sample string 5",
          "EndTime": "sample string 6",
          "Duration": "sample string 7",
          "Accessible": "sample string 8",
          "Trips": {
            "Trip": [
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              },
              {
                "Number": "sample string 1",
                "Display": "sample string 2",
                "Line": "sample string 3",
                "Direction": "sample string 4",
                "LineVariant": "sample string 5",
                "Type": "sample string 6",
                "Stops": {
                  "Stop": [
                    {
                      "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
                    }
                  ]
                },
                "destinationStopCode": "sample string 7",
                "departFromCode": "sample string 8",
                "departFromAlternativeCode": "sample string 9",
                "departFromTimingPoint": "sample string 10",
                "tripPatternId": 11
              }
            ]
          },
          "Transfers": {
            "Transfer": [
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              },
              {
                "Code": "sample string 1",
                "Order": 2,
                "Time": "sample string 3"
              }
            ]
          },
          "TransferLinks": {
            "Link": [
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              },
              {
                "FromTrip": "sample string 1",
                "FromStopCode": "sample string 2",
                "ToTrip": "sample string 3",
                "ToStopCode": "sample string 4",
                "TransferDuration": "sample string 5"
              }
            ]
          },
          "StartSortTime": "sample string 9",
          "EndSortTime": "sample string 10",
          "tripHash": "sample string 11",
          "transferCount": 2
        }
      ]
    }
  ]
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <Journey Date="sample string 1" Time="sample string 2" To="sample string 3" From="sample string 4">
    <Services Colour="sample string 1" Type="sample string 2" Direction="sample string 3" Code="sample string 4" StartTime="sample string 5" EndTime="sample string 6" Duration="sample string 7" Accessible="sample string 8">
      <Trips>
        <Trip Number="sample string 1" Display="sample string 2" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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>
      </Trips>
      <Transfers>
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
      </Transfers>
      <TransferLinks>
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
      </TransferLinks>
    </Services>
    <Services Colour="sample string 1" Type="sample string 2" Direction="sample string 3" Code="sample string 4" StartTime="sample string 5" EndTime="sample string 6" Duration="sample string 7" Accessible="sample string 8">
      <Trips>
        <Trip Number="sample string 1" Display="sample string 2" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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>
      </Trips>
      <Transfers>
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
      </Transfers>
      <TransferLinks>
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
      </TransferLinks>
    </Services>
  </Journey>
  <Journey Date="sample string 1" Time="sample string 2" To="sample string 3" From="sample string 4">
    <Services Colour="sample string 1" Type="sample string 2" Direction="sample string 3" Code="sample string 4" StartTime="sample string 5" EndTime="sample string 6" Duration="sample string 7" Accessible="sample string 8">
      <Trips>
        <Trip Number="sample string 1" Display="sample string 2" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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>
      </Trips>
      <Transfers>
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
      </Transfers>
      <TransferLinks>
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
      </TransferLinks>
    </Services>
    <Services Colour="sample string 1" Type="sample string 2" Direction="sample string 3" Code="sample string 4" StartTime="sample string 5" EndTime="sample string 6" Duration="sample string 7" Accessible="sample string 8">
      <Trips>
        <Trip Number="sample string 1" Display="sample string 2" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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" Line="sample string 3" Direction="sample string 4" LineVariant="sample string 5" Type="sample string 6">
          <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>
      </Trips>
      <Transfers>
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
        <Transfer Code="sample string 1" Order="2" Time="sample string 3" />
      </Transfers>
      <TransferLinks>
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
        <Link FromTrip="sample string 1" FromStopCode="sample string 2" ToTrip="sample string 3" ToStopCode="sample string 4" TransferDuration="sample string 5" />
      </TransferLinks>
    </Services>
  </Journey>
</Result>