Vehicles
Includes buses and some service vehicles. All vehicles belong to a vehicle configuration, which contains details about that fleet's powertrain and acquisition.
API Definitions
Get a vehicle
Response Object
string
string
boolean
string | null
curl -X GET "https://api.mtd.dev/vehicles/{vehicleId}" \
-H "X-ApiKey: YOUR_API_KEY"
{
"result": {
"id": "1346",
"vehicleConfigurationId": "2771c386-b316-4dbb-89d0-a89e3c774bff",
"isActive": true,
"dateInService": "2013-01-10"
},
"error": null
}
Get a vehicle configuration
Response Object
string
integer
| Value | Definition |
|---|---|
| 0 | Bus |
| 1 | ADA Van |
| 2 | C-Carts Van |
| 3 | DRES Van |
| 4 | Supervisor Vehicle |
| 5 | Maintenance Vehicle |
| 6 | Pool Car |
| 7 | Tractor |
| 8 | Historical |
integer | string
string
string
integer | string | null
integer
curl -X GET "https://api.mtd.dev/vehicles/configurations/{configurationId}" \
-H "X-ApiKey: YOUR_API_KEY"
{
"result": {
"id": "2771c386-b316-4dbb-89d0-a89e3c774bff",
"vehicleType": 0,
"year": 2013,
"make": "New Flyer",
"model": "XDE40",
"lengthFeet": 40,
"powertrain": 2
},
"error": null
}
Get all vehicle configurations
Response Object
string
integer
| Value | Definition |
|---|---|
| 0 | Bus |
| 1 | ADA Van |
| 2 | C-Carts Van |
| 3 | DRES Van |
| 4 | Supervisor Vehicle |
| 5 | Maintenance Vehicle |
| 6 | Pool Car |
| 7 | Tractor |
| 8 | Historical |
integer | string
string
string
integer | string | null
integer
curl -X GET "https://api.mtd.dev/vehicles/configurations" \
-H "X-ApiKey: YOUR_API_KEY"
{
"result": [
{
"id": "0e029025-5166-4486-9ee0-f9c34207aeed",
"vehicleType": 0,
"year": 2011,
"make": "New Flyer",
"model": "DE40LFR",
"lengthFeet": 40,
"powertrain": 2
},
{
"id": "18ccf143-21e3-4163-858c-3ffe35e3b8e0",
"vehicleType": 0,
"year": 2022,
"make": "New Flyer",
"model": "XDE60",
"lengthFeet": 60,
"powertrain": 2
}
],
"error": null
}
Get a vehicle location
Response Object
string
object | null
float
float
string | null
object | null
string
string
object | null
integer | null
string
string | null
object | null
string
string | null
string
string | null
string | null
string | null
string | null
curl -X GET "https://api.mtd.dev/vehicles/{vehicleId}/location" \
-H "X-ApiKey: YOUR_API_KEY"
{
"result": {
"id": "1612",
"location": {
"latitude": 40.116617,
"longitude": -88.2075
},
"lastUpdated": "2026-04-07T18:47:50.8386734+00:00",
"trip": {
"id": "[@14.0.52435578@][4][1275670882890]/11__O4_RUBY_MF",
"headsign": "Illinois Terminal",
"direction": {
"id": 1,
"name": "West",
"shortName": "W"
}
},
"route": {
"id": "45eb37e3-c484-469f-89c9-8eb9ec9a43ec",
"gtfsRouteId": "ORANGEHOPPER",
"longName": "Orange",
"shortName": "6",
"color": "f99f2a",
"textColor": "000000"
}
},
"error": null
}
Get all vehicle locations
Response Object
string
object | null
float
float
string | null
object | null
string
string
object | null
integer | null
string
string | null
object | null
string
string | null
string
string | null
string | null
string | null
string | null
curl -X GET "https://api.mtd.dev/vehicles/locations" \
-H "X-ApiKey: YOUR_API_KEY"
{
"result": [
{
"id": "2102",
"location": {
"latitude": 40.1162,
"longitude": -88.19825
},
"lastUpdated": "2026-04-07T18:37:20.4313484+00:00",
"trip": null,
"route": null
},
{
"id": "1722",
"location": {
"latitude": 40.115417,
"longitude": -88.198567
},
"lastUpdated": "2026-04-07T18:37:20.4314403+00:00",
"trip": null,
"route": null
}
],
"error": null
}
Get all vehicles
Response Object
string
string
boolean
string | null
curl -X GET "https://api.mtd.dev/vehicles" \
-H "X-ApiKey: YOUR_API_KEY"
{
"result": [
{
"id": "e88c48c3-4999-4b6e-8b08-2231b6e2afb6",
"vehicleNumber": "1346",
"vehicleConfigurationId": "2771c386-b316-4dbb-89d0-a89e3c774bff",
"isActive": true,
"dateInService": "2013-01-10"
},
{
"id": "95a662ef-ff6d-41b7-9378-4b49536dddae",
"vehicleNumber": "1347",
"vehicleConfigurationId": "2771c386-b316-4dbb-89d0-a89e3c774bff",
"isActive": true,
"dateInService": "2013-01-15"
}
],
"error": null
}