Skip to content

Manual location report

POST /v1/tracker/location_report

Submit location data manually for testing purposes, without JT808 protocol encoding.

No authentication required — this endpoint is open for direct device communication.

This endpoint lets you send GPS tracking data directly using simple JSON parameters, useful for testing and integration without having to encode JT808 messages.

Required parameters:

  • imei — device IMEI number
  • lat — latitude in decimal degrees
  • lng — longitude in decimal degrees

Optional parameters:

  • altitude — altitude in meters
  • speed — speed in km/h
  • angle — direction in degrees (0–360)
  • dt_tracker — device timestamp (YYYY-MM-DD HH:MM:SS format)

Request

bash
curl -X POST -H "Content-Type: application/json" -d '{
    "imei": "123456789012345",
    "lat": 46.424237,
    "lng": 11.825656,
    "altitude": 1200,
    "speed": 45.5,
    "angle": 180,
    "dt_tracker": "2024-01-15 14:30:25"
}' "https://api.sportstracklive.com/v1/tracker/location_report"
http
POST /v1/tracker/location_report HTTP/1.1
Host: api.sportstracklive.com
Content-Type: application/json

{
    "imei": "123456789012345",
    "lat": 46.424237,
    "lng": 11.825656,
    "altitude": 1200,
    "speed": 45.5,
    "angle": 180,
    "dt_tracker": "2024-01-15 14:30:25"
}

Success response

200 OKapplication/json; charset=utf-8

json
{
    "success": true,
    "message": "Location data processed"
}

Error response

400 Bad Requestapplication/json; charset=utf-8

json
{
    "error": "Missing required parameters"
}