GET route/{routeName}/vehicles
Retrieve a list of all vehicles currently servicing the specified route.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
routeName |
The route for whose vehicles should be retrieved. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of VehicleName | Description | Type | Additional information |
---|---|---|---|
VehicleId | integer |
None. |
|
CurrentTripId |
The Trip Id that the vehicle is currently servicing. |
integer |
None. |
Latitude |
Geographic coordinate representing the latitude in decimal format. Null if not available. |
decimal number |
None. |
Longitude |
Geographic coordinate representing the longitude in decimal format. Null if not available. |
decimal number |
None. |
Heading |
The direction the vehicle traveling towards. Null if not available. |
integer |
None. |
TimeLastReported |
Last time that information for this vehicle was reported. Null if not available. |
date |
None. |
Response Formats
application/json, text/json
Sample:
[ { "VehicleId": 1, "CurrentTripId": 2, "Latitude": 1.0, "Longitude": 1.0, "Heading": 1, "TimeLastReported": "2024-04-25T05:33:55.0386765-07:00" }, { "VehicleId": 1, "CurrentTripId": 2, "Latitude": 1.0, "Longitude": 1.0, "Heading": 1, "TimeLastReported": "2024-04-25T05:33:55.0386765-07:00" } ]
text/html
Sample:
[{"VehicleId":1,"CurrentTripId":2,"Latitude":1.0,"Longitude":1.0,"Heading":1,"TimeLastReported":"2024-04-25T05:33:55.0386765-07:00"},{"VehicleId":1,"CurrentTripId":2,"Latitude":1.0,"Longitude":1.0,"Heading":1,"TimeLastReported":"2024-04-25T05:33:55.0386765-07:00"}]
application/xml, text/xml
Sample:
<ArrayOfVehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models"> <Vehicle> <CurrentTripId>2</CurrentTripId> <Heading>1</Heading> <Latitude>1</Latitude> <Longitude>1</Longitude> <TimeLastReported>2024-04-25T05:33:55.0386765-07:00</TimeLastReported> <VehicleId>1</VehicleId> </Vehicle> <Vehicle> <CurrentTripId>2</CurrentTripId> <Heading>1</Heading> <Latitude>1</Latitude> <Longitude>1</Longitude> <TimeLastReported>2024-04-25T05:33:55.0386765-07:00</TimeLastReported> <VehicleId>1</VehicleId> </Vehicle> </ArrayOfVehicle>