GET vehicle/{vehicleId}

Retrieve data for an individual vehicle. Realtime data will only be supplied if the vehicle is currently servicing a route.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
vehicleId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Vehicle
NameDescriptionTypeAdditional 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": "2022-06-28T09:14:35.1135373-07:00"
}

text/html

Sample:
{"VehicleId":1,"CurrentTripId":2,"Latitude":1.0,"Longitude":1.0,"Heading":1,"TimeLastReported":"2022-06-28T09:14:35.1135373-07:00"}

application/xml, text/xml

Sample:
<Vehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <CurrentTripId>2</CurrentTripId>
  <Heading>1</Heading>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <TimeLastReported>2022-06-28T09:14:35.1135373-07:00</TimeLastReported>
  <VehicleId>1</VehicleId>
</Vehicle>