POST TransitApi/Passage

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
request
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "AgencyId": "sample string 1",
  "StopId": "sample string 2",
  "RouteId": "sample string 3",
  "Direction": "sample string 4",
  "MaxResult": 1
}

application/xml, text/xml

Sample:
<NextPassageAtStopRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TransitAPI.Models">
  <AgencyId>sample string 1</AgencyId>
  <Direction>sample string 4</Direction>
  <MaxResult>1</MaxResult>
  <RouteId>sample string 3</RouteId>
  <StopId>sample string 2</StopId>
</NextPassageAtStopRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "AgencyId": "sample string 1",
  "StopId": "sample string 2",
  "RouteId": "sample string 3",
  "Direction": "sample string 4",
  "TripId": "sample string 5",
  "StopNote": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "Times": [
    {
      "TripId": "sample string 1",
      "Sequence": 2,
      "RealTime": true,
      "WheelChairAccess": true,
      "DepartureTime": "2020-07-09T01:22:59.2276771-04:00",
      "Notes": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ],
      "Cancelled": true,
      "TripHeadSign": "sample string 7"
    },
    {
      "TripId": "sample string 1",
      "Sequence": 2,
      "RealTime": true,
      "WheelChairAccess": true,
      "DepartureTime": "2020-07-09T01:22:59.2276771-04:00",
      "Notes": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ],
      "Cancelled": true,
      "TripHeadSign": "sample string 7"
    },
    {
      "TripId": "sample string 1",
      "Sequence": 2,
      "RealTime": true,
      "WheelChairAccess": true,
      "DepartureTime": "2020-07-09T01:22:59.2276771-04:00",
      "Notes": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ],
      "Cancelled": true,
      "TripHeadSign": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<Passages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TransitAPI.Models">
  <AgencyId>sample string 1</AgencyId>
  <Direction>sample string 4</Direction>
  <RouteId>sample string 3</RouteId>
  <StopId>sample string 2</StopId>
  <StopNote xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </StopNote>
  <Times>
    <NextPassingTime>
      <Cancelled>true</Cancelled>
      <DepartureTime>2020-07-09T01:22:59.2276771-04:00</DepartureTime>
      <Notes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
        <d4p1:string>sample string 3</d4p1:string>
      </Notes>
      <RealTime>true</RealTime>
      <Sequence>2</Sequence>
      <TripHeadSign>sample string 7</TripHeadSign>
      <TripId>sample string 1</TripId>
      <WheelChairAccess>true</WheelChairAccess>
    </NextPassingTime>
    <NextPassingTime>
      <Cancelled>true</Cancelled>
      <DepartureTime>2020-07-09T01:22:59.2276771-04:00</DepartureTime>
      <Notes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
        <d4p1:string>sample string 3</d4p1:string>
      </Notes>
      <RealTime>true</RealTime>
      <Sequence>2</Sequence>
      <TripHeadSign>sample string 7</TripHeadSign>
      <TripId>sample string 1</TripId>
      <WheelChairAccess>true</WheelChairAccess>
    </NextPassingTime>
    <NextPassingTime>
      <Cancelled>true</Cancelled>
      <DepartureTime>2020-07-09T01:22:59.2276771-04:00</DepartureTime>
      <Notes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
        <d4p1:string>sample string 3</d4p1:string>
      </Notes>
      <RealTime>true</RealTime>
      <Sequence>2</Sequence>
      <TripHeadSign>sample string 7</TripHeadSign>
      <TripId>sample string 1</TripId>
      <WheelChairAccess>true</WheelChairAccess>
    </NextPassingTime>
  </Times>
  <TripId>sample string 5</TripId>
</Passages>