v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List the drivers with location and vehicle info.

get/v1/driver_locations

Query parameters

driver_ids[]integer[]

Specify the ids of the drivers for whom you want to fetch the location and vehicle info.

per_pageinteger

Number of records to display per page.

page_nointeger

Denotes the current page number.

Headers

X-Time-Zonestring

Specify the timezone for formatting the timestamps.

X-Metric-Unitsboolean

Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units

X-User-Idinteger

Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.

Response

200

Example response

{
  "users": [
    {
      "user": {
        "id": 156,
        "first_name": "Harold",
        "last_name": "Hoeger",
        "username": "hobart",
        "status": "deactivated",
        "role": "driver",
        "current_location": {
          "id": 1395371911,
          "lat": -59.8708336274616,
          "lon": -91.2958210901819,
          "description": "Washington, AZ",
          "located_at": "2016-03-17T12:12:07Z"
        },
        "current_vehicle": {
          "id": 32,
          "number": "V-1000",
          "year": "2016",
          "vin": "WP0AB2966NS458669"
        }
      }
    }
  ],
  "pagination": {
    "per_page": 25,
    "page_no": 1,
    "total": 1
  }
}