---
title: "Latest Vehicle Locations"
method: GET
path: "/vehicles/locations"
tags: ["Vehicles"]
---

# Latest Vehicle Locations

`GET /vehicles/locations`

List the latest location of the vehicles in the connected account.
This endpoint will call the provider's API in real time to get the latest location of the vehicle. 
_Please note: this endpoint will exclude vehicles that have no last known location._

## Query parameters

- `cursor` string, cursor
- `limit` integer
- `raw` boolean
- `vehicleIds` string
- `driverIds` string
- `expand` 'vehicle' | 'driver' | 'vehicle,driver' | 'driver,vehicle'

## Headers

- `X-Application-Id` string
- `Connection-Token` string, required

## Response `200`

OK

- object
  - `results` object[], required
    - `provider` string, required — Every provider has a unique code to identify it across Terminal's system. You can find each provider's code under [provider details](/providers).
    - `vehicle` union, required — The ID of the vehicle that the location is tracking.
      - string, ulid — Unique identifier for the vehicle in Terminal.
      - object
        - `id` string, ulid, required — Unique identifier for the vehicle in Terminal.
    - `driver` union — Entities in Terminal are expandable. Using the `expand` query parameter you can choose to ingest just an ID or the full entity details.
      - string, ulid — Unique identifier for the driver in Terminal.
      - object
        - `id` string, ulid, required — Unique identifier for the driver in Terminal.
    - `locatedAt` string, date-time, required — [ISO 8601](https://www.w3.org/TR/NOTE-datetime) date
    - `location` object, required
      - `longitude` number, required
      - `latitude` number, required
    - `address` object — Reverse geocoded address details for locations when available at the source.
      - `formatted` string
    - `heading` number — Heading in degrees
    - `speed` number — Speed in KPH rounded to 2 decimal places.
    - `odometer` number — Distance in kilometers
    - `fuel` object — Fuel percentage
      - `primaryPercentage` number, required — The percentage value of how much fuel is left in the primary tank.
      - `secondaryPercentage` number — The percentage value of how much fuel is left in the secondary tank.
    - `engineState` 'on' | 'off' | 'idle' — The current state of the vehicle's engine
    - `engineRuntime` integer — Total engine runtime duration
    - `raw` object[]
      - `provider` string, required
      - `schema` string, required
      - `extractedAt` string, required
      - `data` object, required
  - `next` string, cursor — Cursor used for pagination.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `500` — Internal Server Error
- `501` — Not Implemented
- `502` — Bad Gateway
- `503` — Provider Unavailable Error
- `504` — Gateway Timeout Error

---

[API](https://skmtc.dev/withterminal/apis/terminal-telematics-api.md) · [All operations](https://skmtc.dev/withterminal/apis/terminal-telematics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/withterminal/terminal-telematics-api/revisions/90249c4a1739/schema)
