pierremtb / easy-fit

Parse your .FIT files easily, directly from JS
Other
70 stars 51 forks source link

gps coordinates #8

Open corand opened 8 years ago

corand commented 8 years ago

Hello,

I have realised that

activity -> sessions -> laps -> records -> [position_lat, position_long]

the coordinates are incorrect. I don't know the exact conversion, but at least negative values are represented as positive, and it needs some other conversion to place the record in the proper point.

pierremtb commented 8 years ago

Mmh thank you @corand for this report, I didn't check them carefully. I will look into this as soon as I can.

glenjamin commented 7 years ago

As far as I can tell the values are correct, aside from being in the range [0, 360] instead of [-180, 180].

The values are not offset, so the logic to fix them would be something like x > 180 ? x - 360 : x.

jimmykane commented 7 years ago

Let close this issue?