Traccar to GPS Tracking page #22

Closed
opened 2026-02-08 07:38:47 -08:00 by kyle · 2 comments
Owner

This may not be a real issue post all the code updated, but this image.png may not be accurate. Many more miles were driven, but it is only logging 8.1

This may not be a real issue post all the code updated, but this <img width="981" alt="image.png" src="attachments/8257fbc6-6110-4a4f-8490-c55699c39337"> may not be accurate. Many more miles were driven, but it is only logging 8.1
Author
Owner

Use the CSV from the earlier issue for mileage tracking for today.

Use the CSV from the earlier issue for mileage tracking for today.
Author
Owner

Rewrote the GPS stats calculation to use stored GpsLocationHistory instead of Traccar summary API:

  • Haversine distance formula calculates actual route distance between consecutive GPS points
  • Intelligent filtering removes GPS jitter (<0.01mi/50ft), time gaps (>10min off), and unrealistic speeds (>100mph)
  • Trip detection based on speed threshold (>5mph = driving)
  • Driving time calculated from actual movement periods
  • All stats now come from the same data source as the map trails

This should show much more accurate mileage now that we have better position history coverage (from Issue #21 fix) and calculate from all stored points.

Rewrote the GPS stats calculation to use stored GpsLocationHistory instead of Traccar summary API: - **Haversine distance formula** calculates actual route distance between consecutive GPS points - **Intelligent filtering** removes GPS jitter (<0.01mi/50ft), time gaps (>10min off), and unrealistic speeds (>100mph) - **Trip detection** based on speed threshold (>5mph = driving) - **Driving time** calculated from actual movement periods - **All stats** now come from the same data source as the map trails This should show much more accurate mileage now that we have better position history coverage (from Issue #21 fix) and calculate from all stored points.
kyle closed this issue 2026-02-08 07:48:56 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kyle/vip-coordinator#22