Raw vehicle data

This API returns raw GPS track data for a vehicle over a specified period.
Requests can only be made for periods of up to 10 days.

How to get data

Method

GET

Request address

To get the data, use the address: https://<server_address>/ax/api.php?

Request parameters

  • cmd=rawpoints — command to get raw points
  • ts — start date in UNIX timestamp format
  • te — end date in UNIX timestamp format
  • agentid — vehicle identifier
  • node — the number of the node where the command should be executed
 

Example request

https://<server_address>/ax/api.php?cmd=rawpoints&ts=1676926800&te=1676840400&agentid=194&node=1
Response
{
  "code": 0,
  "data": [
    {
      "agentid": 2914,
      "height": 32,
      "direction": 1,
      "latitude": "47.215545",
      "longitude": "39.706906",
      "satsinview": 15,
      "servertime": 1458044666,
      "speed": 10,
      "triggerdata": "Priority=0;EventSource=0;DIS1=1;GSMVal=4;IN1=67;Vsourse=14547;",
      "unixtimestamp": 1458022428
    },
    {
      "agentid": 2914,
      "height": 32,
      "direction": 339,
      "latitude": "47.215938",
      "longitude": "39.706751",
      "satsinview": 12,
      "servertime": 1458044666,
      "speed": 12,
      "triggerdata": "Priority=0;EventSource=0;DIS1=1;GSMVal=4;IN1=67;Vsourse=14538;",
      "unixtimestamp": 1458022437
    }
  ],
  "deb": [
    2914,
    1458022428,
    1458043980
  ],
  "message": "OK"
}
 
In response to the API request, the following is returned:
  • code — request result code (0 = successful)
  • data — array of GPS points:
  • agentid — vehicle identifier
  • height/ altitude — altitude in meters
  • direction — movement direction in degrees
  • latitude/ longitude — coordinates of the point
  • satsinview — number of visible satellites
  • servertime — server time in UNIX timestamp
  • speed — speed in km/h
  • triggerdata — device trigger information
  • unixtimestamp — event time in UNIX timestamp
  • deb — array of debug information (agentid, start, and end of the period)
  • message — text message describing the result of the request