GET stop/{stopId}/destinations

Retrieve a list of all routes and destinations for a given stop.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stopId

The stop for whose destinations should be retrieved.

integer

Required

Body Parameters

None.

Response Information

Resource Description

StopDestination
NameDescriptionTypeAdditional information
StopId

integer

None.

Status

string

None.

RouteDestinations

Collection of StopRouteDestination

None.

Response Formats

application/json, text/json

Sample:
{
  "StopId": 1,
  "Status": "sample string 2",
  "RouteDestinations": [
    {
      "RouteId": "sample string 1",
      "DirectionId": 2,
      "Direction": "sample string 3",
      "Destination": "sample string 4",
      "FinalPassingTime": "2022-06-28T09:13:00.4408792-07:00",
      "Status": "sample string 6"
    },
    {
      "RouteId": "sample string 1",
      "DirectionId": 2,
      "Direction": "sample string 3",
      "Destination": "sample string 4",
      "FinalPassingTime": "2022-06-28T09:13:00.4408792-07:00",
      "Status": "sample string 6"
    }
  ]
}

text/html

Sample:
{"StopId":1,"Status":"sample string 2","RouteDestinations":[{"RouteId":"sample string 1","DirectionId":2,"Direction":"sample string 3","Destination":"sample string 4","FinalPassingTime":"2022-06-28T09:13:00.4408792-07:00","Status":"sample string 6"},{"RouteId":"sample string 1","DirectionId":2,"Direction":"sample string 3","Destination":"sample string 4","FinalPassingTime":"2022-06-28T09:13:00.4408792-07:00","Status":"sample string 6"}]}

application/xml, text/xml

Sample:
<StopDestination xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <RouteDestinations>
    <StopRouteDestination>
      <Destination>sample string 4</Destination>
      <Direction>sample string 3</Direction>
      <DirectionId>2</DirectionId>
      <FinalPassingTime>2022-06-28T09:13:00.4408792-07:00</FinalPassingTime>
      <RouteId>sample string 1</RouteId>
      <Status>sample string 6</Status>
    </StopRouteDestination>
    <StopRouteDestination>
      <Destination>sample string 4</Destination>
      <Direction>sample string 3</Direction>
      <DirectionId>2</DirectionId>
      <FinalPassingTime>2022-06-28T09:13:00.4408792-07:00</FinalPassingTime>
      <RouteId>sample string 1</RouteId>
      <Status>sample string 6</Status>
    </StopRouteDestination>
  </RouteDestinations>
  <Status>sample string 2</Status>
  <StopId>1</StopId>
</StopDestination>