Have you checked it against the documentation?
Yes and Im trying to check multiple configurations. I will try other values.
Btw. As I see in DB trips are calculated when user asks about? So every change of config applies to previous positions too?
It depends. If you request less than 24 hours then it's recalculated. If more then no.
Got it, thanks for the info. One more question: is there an option to change or remove something in the database (or elsewhere) to force a recalculation of older data?
Also, I don't think it’s a strict 24 hours window from the position timestamp. It seems like it just doesn't recalculate anything from 'yesterday' or earlier. For example, I had a trip from 23:00 to 23:45, and after midnight, my configuration changes didn't affect that data at all.
It's not about how old the data is and it's not linked to any calendar days. It's time period in hours. And it's configurable in the config file.
OK I found, thank you very much for help.
I have another question about trips. Maybe I don't understand something but is it correct that Traccar generates for same device different trips in same day depends period setting? Examples for "today" and "this month".
Period: today
Period: this month
Current settings:
- REPORT_TRIP_SPEED_THRESHOLD=0.5
- REPORT_TRIP_MINIMAL_PARKING_DURATION=300
- REPORT_TRIP_MINIMAL_TRIP_DISTANCE=50
- REPORT_IGNORE_ODOMETER=true
- REPORT_FAST_THRESHOLD=864000 # 10 days
Sounds like the same issue.
What you mean same issue? Its correct behavior that I get different results for my custom settings?
It could be.
I still don't have idea what is wrong in my configuration e.g.
Current settings (I moved to xml file):
<entry key='report.ignoreOdometer'>true</entry>
<entry key='report.trip.minimalTripDuration'>120</entry>
<entry key='report.trip.speedThreshold'>0.01</entry>
<entry key='report.trip.minimalParkingDuration'>900</entry>
<entry key='report.trip.minimalTripDistance'>20</entry>
Traccar ignores these points in trip, starts trip from last point from these. All previous are ignored:
{
"id": 27242,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 20,
"sat": 30,
"mode": 15,
"batteryLevel": 26,
"distance": 75.3112300568547,
"totalDistance": 95.24783575059728,
"motion": true
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:47:56.496+00:00",
"deviceTime": "2026-02-14T06:47:54.000+00:00",
"fixTime": "2026-02-14T06:47:54.000+00:00",
"valid": true,
"latitude": 49.969969999999996,
"longitude": 19.901076,
"altitude": 299.0,
"speed": 5.2915786,
"course": 272.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27245,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 23,
"sat": 31,
"mode": 15,
"batteryLevel": 26,
"distance": 15.851576694766559,
"totalDistance": 111.09941244536384,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:48:55.556+00:00",
"deviceTime": "2026-02-14T06:48:53.000+00:00",
"fixTime": "2026-02-14T06:48:53.000+00:00",
"valid": true,
"latitude": 49.970051999999995,
"longitude": 19.900895,
"altitude": 301.0,
"speed": 0.0,
"course": 305.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27246,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 25,
"sat": 32,
"mode": 16,
"batteryLevel": 26,
"distance": 13.604715309314837,
"totalDistance": 124.70412775467868,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:49:08.472+00:00",
"deviceTime": "2026-02-14T06:49:06.000+00:00",
"fixTime": "2026-02-14T06:49:06.000+00:00",
"valid": true,
"latitude": 49.970011,
"longitude": 19.900716,
"altitude": 300.0,
"speed": 0.0,
"course": 273.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27250,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 19,
"sat": 31,
"mode": 16,
"batteryLevel": 26,
"distance": 4.615954740367756,
"totalDistance": 129.32008249504645,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:50:07.579+00:00",
"deviceTime": "2026-02-14T06:50:05.000+00:00",
"fixTime": "2026-02-14T06:50:05.000+00:00",
"valid": true,
"latitude": 49.970043,
"longitude": 19.900675,
"altitude": 300.0,
"speed": 0.0,
"course": 285.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27252,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 25,
"sat": 31,
"mode": 15,
"batteryLevel": 26,
"distance": 23.65224202674627,
"totalDistance": 152.97232452179273,
"motion": true
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:50:20.491+00:00",
"deviceTime": "2026-02-14T06:50:18.000+00:00",
"fixTime": "2026-02-14T06:50:18.000+00:00",
"valid": true,
"latitude": 49.970254999999995,
"longitude": 19.900696999999997,
"altitude": 305.0,
"speed": 3.779699,
"course": 358.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27255,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 31,
"sat": 33,
"mode": 15,
"batteryLevel": 26,
"distance": 24.555614540842473,
"totalDistance": 177.5279390626352,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:51:19.567+00:00",
"deviceTime": "2026-02-14T06:51:17.000+00:00",
"fixTime": "2026-02-14T06:51:17.000+00:00",
"valid": true,
"latitude": 49.970475,
"longitude": 19.900722,
"altitude": 302.0,
"speed": 0.0,
"course": 31.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27256,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 28,
"sat": 29,
"mode": 15,
"batteryLevel": 26,
"distance": 26.33973558054012,
"totalDistance": 203.86767464317532,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:51:32.478+00:00",
"deviceTime": "2026-02-14T06:51:30.000+00:00",
"fixTime": "2026-02-14T06:51:30.000+00:00",
"valid": true,
"latitude": 49.970678,
"longitude": 19.900533,
"altitude": 307.0,
"speed": 0.0,
"course": 40.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27259,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 23,
"sat": 29,
"mode": 15,
"batteryLevel": 26,
"distance": 44.11514724089385,
"totalDistance": 247.98282188406915,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:52:31.577+00:00",
"deviceTime": "2026-02-14T06:52:29.000+00:00",
"fixTime": "2026-02-14T06:52:29.000+00:00",
"valid": true,
"latitude": 49.970638,
"longitude": 19.899919999999998,
"altitude": 301.0,
"speed": 0.0,
"course": 236.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27261,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 24,
"sat": 32,
"mode": 15,
"batteryLevel": 26,
"distance": 53.68747261393634,
"totalDistance": 301.6702944980055,
"motion": true
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:52:44.477+00:00",
"deviceTime": "2026-02-14T06:52:42.000+00:00",
"fixTime": "2026-02-14T06:52:42.000+00:00",
"valid": true,
"latitude": 49.970703,
"longitude": 19.900662999999998,
"altitude": 307.0,
"speed": 4.859613,
"course": 86.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27264,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 24,
"sat": 33,
"mode": 16,
"batteryLevel": 26,
"distance": 47.98011003840425,
"totalDistance": 349.6504045364097,
"motion": true
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:53:43.563+00:00",
"deviceTime": "2026-02-14T06:53:41.000+00:00",
"fixTime": "2026-02-14T06:53:41.000+00:00",
"valid": true,
"latitude": 49.970678,
"longitude": 19.901332,
"altitude": 305.0,
"speed": 4.9136087,
"course": 89.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27265,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 27,
"sat": 32,
"mode": 15,
"batteryLevel": 26,
"distance": 40.689678250440224,
"totalDistance": 390.34008278684996,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:53:56.483+00:00",
"deviceTime": "2026-02-14T06:53:54.000+00:00",
"fixTime": "2026-02-14T06:53:54.000+00:00",
"valid": true,
"latitude": 49.970532,
"longitude": 19.901853,
"altitude": 301.0,
"speed": 0.0,
"course": 313.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27269,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 25,
"sat": 30,
"mode": 15,
"batteryLevel": 26,
"distance": 5.41349124750136,
"totalDistance": 395.75357403435135,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:54:55.588+00:00",
"deviceTime": "2026-02-14T06:54:53.000+00:00",
"fixTime": "2026-02-14T06:54:53.000+00:00",
"valid": true,
"latitude": 49.970572,
"longitude": 19.901809999999998,
"altitude": 301.0,
"speed": 0.0,
"course": 32.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27271,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1300,
"rssi": 21,
"sat": 25,
"mode": 15,
"batteryLevel": 26,
"distance": 28.98112249559272,
"totalDistance": 424.7346965299441,
"motion": false
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:55:14.519+00:00",
"deviceTime": "2026-02-14T06:55:12.000+00:00",
"fixTime": "2026-02-14T06:55:12.000+00:00",
"valid": true,
"latitude": 49.97067,
"longitude": 19.902185,
"altitude": 303.0,
"speed": 0.0,
"course": 222.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27274,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1400,
"rssi": 27,
"sat": 32,
"mode": 15,
"batteryLevel": 26,
"distance": 39.347865602838134,
"totalDistance": 464.0825621327822,
"motion": true
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:56:13.589+00:00",
"deviceTime": "2026-02-14T06:56:11.000+00:00",
"fixTime": "2026-02-14T06:56:11.000+00:00",
"valid": true,
"latitude": 49.970686,
"longitude": 19.902734,
"altitude": 298.0,
"speed": 5.183587200000001,
"course": 95.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27275,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1400,
"rssi": 23,
"sat": 31,
"mode": 15,
"batteryLevel": 26,
"distance": 54.54816745140354,
"totalDistance": 518.6307295841857,
"motion": true
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:56:32.474+00:00",
"deviceTime": "2026-02-14T06:56:30.000+00:00",
"fixTime": "2026-02-14T06:56:30.000+00:00",
"valid": true,
"latitude": 49.971174999999995,
"longitude": 19.902684999999998,
"altitude": 302.0,
"speed": 3.6177119,
"course": 335.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
{
"id": 27278,
"attributes": {
"ignition": false,
"blocked": false,
"charge": false,
"odometer": 1400,
"rssi": 21,
"sat": 31,
"mode": 15,
"batteryLevel": 26,
"distance": 56.81875026431056,
"totalDistance": 575.4494798484963,
"motion": true
},
"deviceId": 14,
"protocol": "huabao",
"serverTime": "2026-02-14T06:57:31.592+00:00",
"deviceTime": "2026-02-14T06:57:29.000+00:00",
"fixTime": "2026-02-14T06:57:29.000+00:00",
"valid": true,
"latitude": 49.97159,
"longitude": 19.902223,
"altitude": 300.0,
"speed": 4.1036732,
"course": 310.0,
"address": null,
"accuracy": 0.0,
"network": null,
"geofenceIds": null
},
It's not necessary about configuration. It could be at the time your device hasn't fully uploaded the data or it uploaded in the wrong order. Or you changed configuration since.
Yes I changed configuration, but I have in my env:
REPORT_FAST_THRESHOLD=864000
So as I understand every time when I click Reports > trips > show - trips are generated from positions data from last 10 days yes? Or I have to remove something in cache/DB?
Every change I stop and start Docker container.
About uploaded data by device, above positions are from Traccar api and server/device/fix time looks ok and there is time in wrong order.
The threshold means that if you select less than 10 days, reports will be generated directly from raw data. If more, we will use events.
Hi
I have problem with generating trips. Im using GPS tracker for my pet so I set low values on duration and distance but still Traccar doesn't generate trips for my points.
Example "trip" and response from Traccar points report: https://pastebin.com/VNLM4zbD There is about ~0.5km trip.
Traccar shows 0.1km also from other longer trip around ~2km shows multiple 0km trips.

My custom configuration looks like:
Should I try to change my configuration or maybe my device returns multiple wrong data?