---
title: "Track the last location of an asset"
method: GET
path: "/skynet/asset/{id}/location/last"
tags: ["Tracking_Asset"]
---

# Track the last location of an asset

`GET /skynet/asset/{id}/location/last`

## Query parameters

- `key` string, 32 character alphanumeric string, required

## Response `200`

OK

- DtoGetLastLocationResp
  - `status` string — A string indicating the state of the response. On successful responses, the value will be Ok. Indicative error messages are returned for different errors. See the [API Error Codes](#api-error-codes) section below for more information.
  - `data` object — An object containing the information about the last tracked location of the requested asset.
    - `location` DtoTrackLocation — An object with details of the tracked location. Please note that if there are no tracking records for an asset, no location data will be returned.
      - `accuracy` number — If available, this property returns the accuracy of the GPS information received at the tracked location. It is represented as an estimated horizontal accuracy radius, in meters, at the 68th percentile confidence level.
      - `altitude` number — If available in the GPS information, this property returns the altitude of the asset at the tracked location. It is represented as height, in meters, above the WGS84 reference ellipsoid.
      - `bearing` number — If available in the GPS information, this property returns the heading of the asset calculated from true north in clockwise direction at the tracked location. Please note that the bearing is not affected by the device orientation. The bearing will always be in the range of [0, 360).
      - `location` object — An object with the coordinates of the last tracked location.
        - `lat` number — Latitude of the tracked location of the asset.
        - `lon` number — Longitude of the tracked location of the asset.
      - `meta_data` TrackMetaDataSkynet — Specifies the custom data about the location that was added when the location was uploaded.
      - `speed` number — If available in the GPS information, this property returns the speed of the asset, in meters per second, at the tracked location.
      - `timestamp` integer — A UNIX epoch timestamp in milliseconds, representing the time at which the location was tracked.
      - `battery_level` integer — Returns the battery level of the GPS device, as a percentage, when the location was tracked. It has a minimum value of 0 and a maximum value of 100.
      - `tracking_mode` string — Internal parameter for tracking mode.
  - `message` string — Displays the error message in case of a failed request. If the request is successful, this field is not present in the response.

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/nextbillion-ai/apis/one-spec-service.md) · [All operations](https://skmtc.net/nextbillion-ai/apis/one-spec-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nextbillion-ai/one-spec-service/versions/b647f1808dda/schema)
