GET route/{routes}/tripstoday?direction={direction}

Retrieve a list of all trips that travel along one or more routes today.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
routes

The route(s) for whose trips should be retrieved (comma delimited).

string

Required

direction

Optional direction or destination to filter by (comma delimited).

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TripStopToday
NameDescriptionTypeAdditional information
RouteId

string

None.

DirectionId

integer

None.

Direction

string

None.

ScheduleType

string

None.

Headsign

string

None.

Destination

string

None.

Destination2

string

None.

TripStartTime

date

None.

TripId

integer

None.

TripNumber

integer

None.

TripNumber2

integer

None.

PositionNumber

integer

None.

StopId

integer

None.

StopDescription

string

None.

PassingTime

date

None.

StopNumber1

integer

None.

StopNumber2

string

None.

PlaceId

string

None.

StopLongitude

decimal number

None.

StopLatitude

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RouteId": "sample string 1",
    "DirectionId": 2,
    "Direction": "sample string 3",
    "ScheduleType": "sample string 4",
    "Headsign": "sample string 5",
    "Destination": "sample string 6",
    "Destination2": "sample string 7",
    "TripStartTime": "2022-06-28T08:02:41.3772165-07:00",
    "TripId": 9,
    "TripNumber": 10,
    "TripNumber2": 11,
    "PositionNumber": 12,
    "StopId": 13,
    "StopDescription": "sample string 14",
    "PassingTime": "2022-06-28T08:02:41.3929389-07:00",
    "StopNumber1": 16,
    "StopNumber2": "sample string 17",
    "PlaceId": "sample string 18",
    "StopLongitude": 19.0,
    "StopLatitude": 20.0
  },
  {
    "RouteId": "sample string 1",
    "DirectionId": 2,
    "Direction": "sample string 3",
    "ScheduleType": "sample string 4",
    "Headsign": "sample string 5",
    "Destination": "sample string 6",
    "Destination2": "sample string 7",
    "TripStartTime": "2022-06-28T08:02:41.3772165-07:00",
    "TripId": 9,
    "TripNumber": 10,
    "TripNumber2": 11,
    "PositionNumber": 12,
    "StopId": 13,
    "StopDescription": "sample string 14",
    "PassingTime": "2022-06-28T08:02:41.3929389-07:00",
    "StopNumber1": 16,
    "StopNumber2": "sample string 17",
    "PlaceId": "sample string 18",
    "StopLongitude": 19.0,
    "StopLatitude": 20.0
  }
]

text/html

Sample:
[{"RouteId":"sample string 1","DirectionId":2,"Direction":"sample string 3","ScheduleType":"sample string 4","Headsign":"sample string 5","Destination":"sample string 6","Destination2":"sample string 7","TripStartTime":"2022-06-28T08:02:41.3772165-07:00","TripId":9,"TripNumber":10,"TripNumber2":11,"PositionNumber":12,"StopId":13,"StopDescription":"sample string 14","PassingTime":"2022-06-28T08:02:41.3929389-07:00","StopNumber1":16,"StopNumber2":"sample string 17","PlaceId":"sample string 18","StopLongitude":19.0,"StopLatitude":20.0},{"RouteId":"sample string 1","DirectionId":2,"Direction":"sample string 3","ScheduleType":"sample string 4","Headsign":"sample string 5","Destination":"sample string 6","Destination2":"sample string 7","TripStartTime":"2022-06-28T08:02:41.3772165-07:00","TripId":9,"TripNumber":10,"TripNumber2":11,"PositionNumber":12,"StopId":13,"StopDescription":"sample string 14","PassingTime":"2022-06-28T08:02:41.3929389-07:00","StopNumber1":16,"StopNumber2":"sample string 17","PlaceId":"sample string 18","StopLongitude":19.0,"StopLatitude":20.0}]

application/xml, text/xml

Sample:
<ArrayOfTripStopToday xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <TripStopToday>
    <Destination>sample string 6</Destination>
    <Destination2>sample string 7</Destination2>
    <Direction>sample string 3</Direction>
    <DirectionId>2</DirectionId>
    <Headsign>sample string 5</Headsign>
    <PassingTime>2022-06-28T08:02:41.3929389-07:00</PassingTime>
    <PlaceId>sample string 18</PlaceId>
    <PositionNumber>12</PositionNumber>
    <RouteId>sample string 1</RouteId>
    <ScheduleType>sample string 4</ScheduleType>
    <StopDescription>sample string 14</StopDescription>
    <StopId>13</StopId>
    <StopLatitude>20</StopLatitude>
    <StopLongitude>19</StopLongitude>
    <StopNumber1>16</StopNumber1>
    <StopNumber2>sample string 17</StopNumber2>
    <TripId>9</TripId>
    <TripNumber>10</TripNumber>
    <TripNumber2>11</TripNumber2>
    <TripStartTime>2022-06-28T08:02:41.3772165-07:00</TripStartTime>
  </TripStopToday>
  <TripStopToday>
    <Destination>sample string 6</Destination>
    <Destination2>sample string 7</Destination2>
    <Direction>sample string 3</Direction>
    <DirectionId>2</DirectionId>
    <Headsign>sample string 5</Headsign>
    <PassingTime>2022-06-28T08:02:41.3929389-07:00</PassingTime>
    <PlaceId>sample string 18</PlaceId>
    <PositionNumber>12</PositionNumber>
    <RouteId>sample string 1</RouteId>
    <ScheduleType>sample string 4</ScheduleType>
    <StopDescription>sample string 14</StopDescription>
    <StopId>13</StopId>
    <StopLatitude>20</StopLatitude>
    <StopLongitude>19</StopLongitude>
    <StopNumber1>16</StopNumber1>
    <StopNumber2>sample string 17</StopNumber2>
    <TripId>9</TripId>
    <TripNumber>10</TripNumber>
    <TripNumber2>11</TripNumber2>
    <TripStartTime>2022-06-28T08:02:41.3772165-07:00</TripStartTime>
  </TripStopToday>
</ArrayOfTripStopToday>