GET route/{routeName}/trip/{tripId}/stops
Retrieve a list of bus stops for the specified trip.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
routeName |
The route for whose stops should be retrieved. |
string |
Required |
tripId |
The trip for whose stops should be retrieved. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of StopName | Description | Type | Additional information |
---|---|---|---|
StopId | integer |
None. |
|
Name | string |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
ScheduledTime |
The time a vehicle is scheduled to depart from this stop. Note: The 'date' part of this variable is unimportant, use only the Time. |
date |
None. |
Response Formats
application/json, text/json
Sample:
[ { "StopId": 1, "Name": "sample string 2", "Latitude": 3.0, "Longitude": 4.0, "ScheduledTime": "2023-06-05T04:02:31.0715277-07:00" }, { "StopId": 1, "Name": "sample string 2", "Latitude": 3.0, "Longitude": 4.0, "ScheduledTime": "2023-06-05T04:02:31.0715277-07:00" } ]
text/html
Sample:
[{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"ScheduledTime":"2023-06-05T04:02:31.0715277-07:00"},{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"ScheduledTime":"2023-06-05T04:02:31.0715277-07:00"}]
application/xml, text/xml
Sample:
<ArrayOfStop xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models"> <Stop> <Latitude>3</Latitude> <Longitude>4</Longitude> <Name>sample string 2</Name> <ScheduledTime>2023-06-05T04:02:31.0715277-07:00</ScheduledTime> <StopId>1</StopId> </Stop> <Stop> <Latitude>3</Latitude> <Longitude>4</Longitude> <Name>sample string 2</Name> <ScheduledTime>2023-06-05T04:02:31.0715277-07:00</ScheduledTime> <StopId>1</StopId> </Stop> </ArrayOfStop>