By first starting the timer in the sim and subsequently the replay of the .fit the first value of info.elapsedDistance is very large, as can be seen in the table below line 8. The reason for this issue is due to the initial values in the sim lat=0.0 and lon=0.0 . For my understanding if replaying a .fit the starting position lat/lon in the .fit i.e. the first position should be used instead of [0,0].
t[ms] dist[m] speed[km/h] 1218 0.000000 0.000000 // starting recording in sim 2281 0.000000 0.000000 3250 0.000000 0.000000 4281 0.000000 0.000000 5281 0.000000 0.000000 6281 0.000000 0.000000 // starting .fit playback 7281 5834499.500000 21004198.000000 // huge distance ??? 8281 5834500.000000 1.800000 9281 5834501.000000 3.600000 10281 5834502.000000 3.600000 11281 5834503.500000 5.400000 12281 5834505.000000 5.400000 13281 5834506.500000 5.400000 14281 5834508.500000 7.200000 15281 5834510.500000 7.200000 16281 5834513.500000 10.800000 17281 5834516.500000 10.800000 ... 57281 5834655.500000 16.199999 58281 5834659.000000 12.600000 59281 5834662.500000 12.600000 60281 5834666.500000 14.400001 61281 5834670.000000 12.600000 62281 5834673.000000 10.800000 63281 5834676.500000 12.600000 64281 5834679.500000 10.800000 65281 5834683.500000 14.400001 66281 5834687.500000 14.400001 67281 5834691.000000 12.600000
Simulator 3.1.6
SDK 3.1.6