Distance is the distance from previous location. Total distance is accumulated value. It's all calculated on the server side.
is it Meter or Kilometer or what ?
How about Index ? what is that ?
Distance is in meters. Index is message number reported by the device.
distance from last point to point .. how to calculate it, is that using street map google or
calculate with ruler point to point straight ?
anyway thanks for fast respond
It's a straight line distance.
If I wanted to measure the distance of a Trip, is there an API call I can make to set the Total Distance back to Zero at some point in time?
You can only update the last value.
Thank you for your reply Anton.
But, what do you mean by the Last Value?
Can you please point me to the API doc for that so I can test and understand?
{
"index": 955,
"protocol": "gt06",
"speed": "0.0",
"status": 5,
"altitude": "0.0",
"ignition": false,
"gsm": 4,
"device_time": "10-02-2017 00:09:06",
"ip": "114.127.245.8",
"id": "351608080644292",
"course": "15.0",
"distance": 0,
"name": "Mobil 044 B9340XXX",
"battery": 6,
"totalDistance": 12672490.04,
"longitude": "107.2334311111111",
"latitude": "-6.353882222222222",
"group": "gundul_mengkilat@yahoo.com",
"fix_time": "09-02-2017 22:49:07"
}
anybody can help me what is that mean "distance" and "totaldistance"?
GT06n device not send that data i think.