Hello,
I am trying to use API call to pull or calculate the distances for a selected device. The end result should match with the totals shown on GeoTab's Advanced Zone Visit Report (see below).
The GeoTab report shows 6mi as 'Distance to Arrival' on 4/26/2025.
I've tried to pull multiple data points (including ExceptionEvent.Distance and Trip.Distance) but none have matched. Included below is payload for ExceptionEvent:
api.call("Get", {
"typeName": "ExceptionEvent",
"resultsLimit": 10,
"search":{
"fromDate": "2025-04-26T00:00:00.000Z" ,
"toDate": "2025-04-26T23:59:59.000Z",
"devicesearch":{
"id": "bFB"
},
}
}, function(result) {
console.log("Done: ", result);
}, function(e) {
console.error("Failed:", e);
});
What is the correct/best way to pull this data? Any suggestion will be greatly appreciated.