Back

GET api/V1/Stop/NextService/{StopCode}

Displays predictions for all lines that feed a certain bus or train stop.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
StopCode

The stop for which the line predictions are required

string

Default value is

Body Parameters

None.

Response Information

Resource Description

Bus or train lines/routes that feed the stop given.

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "NextService": {
    "Lines": [
      {
        "StopCode": "sample string 1",
        "LineCode": "sample string 2",
        "LineName": "sample string 3",
        "ServiceType": "sample string 4",
        "DirectionCode": "sample string 5",
        "DirectionName": "sample string 6",
        "ScheduledDepartureTime": null,
        "ComputedDepartureTime": null,
        "DepartureStatus": "sample string 9",
        "ScheduledPlatform": "sample string 10",
        "ActualPlatform": "sample string 11",
        "TripOrder": 12,
        "TripNumber": "sample string 13",
        "UpdateTime": "",
        "Status": "sample string 15",
        "Latitude": 16.0,
        "Longitude": 17.0,
        "OccupancyPercentage": 18
      },
      {
        "StopCode": "sample string 1",
        "LineCode": "sample string 2",
        "LineName": "sample string 3",
        "ServiceType": "sample string 4",
        "DirectionCode": "sample string 5",
        "DirectionName": "sample string 6",
        "ScheduledDepartureTime": null,
        "ComputedDepartureTime": null,
        "DepartureStatus": "sample string 9",
        "ScheduledPlatform": "sample string 10",
        "ActualPlatform": "sample string 11",
        "TripOrder": 12,
        "TripNumber": "sample string 13",
        "UpdateTime": "",
        "Status": "sample string 15",
        "Latitude": 16.0,
        "Longitude": 17.0,
        "OccupancyPercentage": 18
      }
    ]
  }
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <NextService>
    <Lines StopCode="sample string 1" LineCode="sample string 2" LineName="sample string 3" ServiceType="sample string 4" DirectionCode="sample string 5" DirectionName="sample string 6" DepartureStatus="sample string 9" ScheduledPlatform="sample string 10" ActualPlatform="sample string 11" TripOrder="12" TripNumber="sample string 13" UpdateTime="" Status="sample string 15" Latitude="16" Longitude="17" OccupancyPercentage="18" />
    <Lines StopCode="sample string 1" LineCode="sample string 2" LineName="sample string 3" ServiceType="sample string 4" DirectionCode="sample string 5" DirectionName="sample string 6" DepartureStatus="sample string 9" ScheduledPlatform="sample string 10" ActualPlatform="sample string 11" TripOrder="12" TripNumber="sample string 13" UpdateTime="" Status="sample string 15" Latitude="16" Longitude="17" OccupancyPercentage="18" />
  </NextService>
</Result>