FleetUp API Docs
  1. Location
FleetUp API Docs
  • Quick Start
    • Your First API Call
    • Token Expiration
    • Rate Limit
    • Error Codes
  • API Reference
    • Introduction
    • Authentication
      • /token
      • Obtain JWT Token
    • Account & User & Device
      • /account-info
      • /users
      • /drivers/list
      • /devices
      • /devices/status
      • /devices/unlock
      • /devices/driver-overview
      • /devices/engine-hours
      • /devices/fuel-level
      • /devices/odometer
      • /devices/latest-ecu-data
      • /devices/{device-id}
      • /devices/{device-type}
      • /devices/{device-type}/details
      • /devices/{device-type}/history
    • Trips
      • /trips/history
      • /trips/ongoing-trips
    • Trip Share
      • /tripshare/live-eta
      • /tripshare/partners
      • /tripshare/share
    • Alerts
      • /alerts/summary
      • /alerts/history
      • /alerts/bulk-history
      • /fencealerts/fence-names
      • /fencealerts/geo-fencealerts
    • Location
      • Retrieve GPS data within a 24-hour time range
        POST
      • /gpsdata/device-last-location
        POST
      • /gpsdata/latest
        POST
      • /gpsdata/latest/4cj
        POST
      • /gpsdata/latest/5ta
        POST
      • /bulk-gpsdata
        POST
    • Maintenance
      • /maintenance/history
      • /maintenance/indicators
      • /maintenance/settings/indicators
      • /maintenance/settings/measurements
    • Reports
      • /reports/temperature-sensors
      • /reports/{report-key}
    • Geofence
      • Get all fences
      • Get fence detail
      • Retrieve geofence alerts
    • Others
      • /jobs
  • API Guides
    • Retrieve All Devices from an Enterprise
  1. Location

/gpsdata/device-last-location

POST
/gpsdata/device-last-location
This API will return the last known GPS coordinates of all devices under the account.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Header Params
token
string 
required
Access token which was generated earlier
Body Params application/json
acctId
string 
required
Account ID
Example
{
    "acctId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/gpsdata/device-last-location' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "acctId": "string"
}'

Responses

🟢200成功
application/json
200 response
Body
status
number 
optional
response status (http status)
data
array [object {9}] 
optional
devId
string 
optional
Device ID
tmTime
number 
optional
GPS trigger time, UTC time zone, yyyyMMddHHmmss
lat
number 
optional
Last coordinate’s latitude
lng
number 
optional
Last coordinate’s longitude
speed
number 
optional
The value for instant speed, unit: cm/s
direction
number 
optional
The direction of where the vehicle is driving toward
rpm
number 
optional
Revolutions Per Minute
fuelWear
number 
optional
Fuel consumed in centiliters
idling
number 
optional
idling identification, 1: idling 0: not idling
Example
{
    "status": 0,
    "data": [
        {
            "devId": "string",
            "tmTime": 0,
            "lat": 0,
            "lng": 0,
            "speed": 0,
            "direction": 0,
            "rpm": 0,
            "fuelWear": 0,
            "idling": 0
        }
    ]
}
Modified at 2025-02-28 08:12:14
Previous
Retrieve GPS data within a 24-hour time range
Next
/gpsdata/latest
Built with