Trips Report is empty when searching for more than 24h

lukas9 months ago

Hi, I am using a tracking licence on shared server. Is there a limitation that I can only get trips for a 24h period per api request? Or am I missing something?

With this, the server returns to trips driven on the 25th, as expected:
https://server.traccar.org/api/reports/trips?deviceId=4426&from=2023-08-25T00:00:00Z&to=2023-08-26T00:00:00Z

But if I extend the time interval for a second or a day, no trips are returned:
https://server.traccar.org/api/reports/trips?deviceId=4426&from=2023-08-25T00:00:00Z&to=2023-08-26T00:00:01Z
https://server.traccar.org/api/reports/trips?deviceId=4426&from=2023-08-25T00:00:00Z&to=2023-08-27T00:00:00Z

Anton Tananaev9 months ago

Reports for a period longer than a day use a slightly different logic. They use events, so if there's some issue with movement events from your device, they won't work correctly. For example if your device is not reporting data in chronological order, that will likely cause issues like this.

By the way, for support with subscription services I recommend contacting the support email.

lukas9 months ago

Thank you. I will contact support email to check for issues with movement events.