Why Total Distance Decreasing with time ?

Anisha Vishnoi6 years ago

I am using traccar 3.12 and found an issue that totalDistance calculated for a device decreasing but at the same distance is positive.

Anton Tananaev6 years ago

It probably means that report came in the wrong order.

Anisha Vishnoi6 years ago

Hi Anton,

http://vtrackgps.com/img/traccar-issue.png

I am sharing a screenshot which has records from positions table and ordered by position id. As you can see in image -

  1. position id is increasing.
  2. fixtime is increasing
  3. servertime is constant for so many positions and then changes.
  4. Distance in meters is very big values (if I convert into kilometers its several kilometers)
  5. Total Distance is decreasing

I could not find out where is the issue.

If you want to access my system I can provide you my login access.

Anton Tananaev6 years ago

If your messages all come at the same time there also could be a problem.

Anisha Vishnoi6 years ago

ok. Yes message came at the same time. But my concern is that for the same record distance is in kilometers and not added in total distance, it is adding some different value. It should add same value in total distance.

Is there any solution if all the positions came at the same time ?

Anton Tananaev6 years ago

Do you have reverse geocoding enabled? Try disabling it.

Anisha Vishnoi6 years ago

Reverse Geocoding is already disabled.
Event subsystem is enabled.
Event forwarding is enabled for sending push notifications.
Position forwarding is enabled - I am calculating the total distance traveled in a day by a specific device using distance attribute(sum of the distance attribute) But due to this issue(distance value is very larger than distance between last position and current position) my reports is not in sync with Summary reports.

Example of issue-
In the reports If I select
start date = '2018-07-12 00:15'
end date = '2018-07-12 23:45'

Summary reports shows distance =135KM
and for the same period if I sum up all the distance attribute then sum is = 330KM

But I think For a specific period-
(totalDistance in Last Record) - (totalDistance in First Record) = (Sum of all the distance attribute value)

But there is very large difference, Please look into the issue and provide any fix.

I can provide access to my system or I can point my device to demo server.