Trip data doesn't match API results

RyD 6 years ago

I did a trip report on traccar and it showed this information:

https://drive.google.com/file/d/1488LWqi67Qc4fdTf-6NVRfDTCFGvC9g9/view?usp=sharing

Basically that the device did a trip of 7.44km distance at an average speed of 22.5 km/h from 2018-12-14 08:48:07 until 2018-12-14 09:06:54

Then I did the same call through the API:

http://serverIP:port/api/positions?deviceId=10&from=2018-12-14T08:48:00Z&to=2018-12-14T09:07:00Z

Getting this result

https://drive.google.com/file/d/1JjvK5eqBnenGyGpzj3NwOhW9lv87JB75/view?usp=sharing

In the result the device never moved.

Please advise

Anton Tananaev6 years ago

Trip report uses positions, so it's not possible. Maybe you are using different time.

RyD 6 years ago

I thought the time was the problem but I am located at GMT-5 and I pull from API 5 hours less and data doesn't match either.

Anton Tananaev6 years ago

Both API calls rely on the same raw data, so it has to match. The only reason, I can think of, for not matching is time.