Strange behavior of distance calculation

gpadider7 years ago

Hello Anton,

I have experienced something strange recently.

I did enduro with my motorcycle and when going somewhere from my house I did 13,55 km (according to traccar) and when I came back it only shows 3,23 km on Traccar. Very strange because it's the same distance !

I precise that I'm riding in sort of moutains and that my tracker doesn't send the altitude (by the way, any way to get it through an elevation API for example with Traccar ?).

Here is a screen shot, I can send you more data.

Thank you very much.

img1

img2

img3

Here are the two routes and the legend (as you can see 1000 meters)
img4

Anton Tananaev7 years ago

Traccar doesn't use altitude for distance calculations. It's also not possible to get altitude through API, but it might be an interesting feature.

gpadider7 years ago

Maybe I can try to implement to it ? Any hint to start ?

Do you have any idea why the distance calculation is wrong ? (according to the legend and the first trip)

Anton Tananaev7 years ago

I think the problem is not with distance calculation. It's probably with trips. I would recommend to use summary report to verify that.

gpadider7 years ago

In the summary I have 28.09 km. That makes sense.

Okay so the problem is in trips. Are you interested to solve the problem or maybe it's not a priority for you ? (don't want to abuse of your kindness)

Thanks for your answers Anton

Anton Tananaev7 years ago

I would recommend you to study this document:

https://www.traccar.org/documentation/trips-stops/