Open nbrr opened 3 years ago
Can't reproduce it, please share the track or screenshot.
Any way I could privately share the track?
The average speed is obtained via total distance covered divided by time needed, and is consistent in both screenshots.
The maximum speed is the maximum recorded value of the orange speed graph (which is taken from the speed values contained in the track itself), looks also consistent in both screenshots.
Looks to me the inconsistency is not an artifact of the analysis, but is within your GPX files itself: Either the distance they represent is exaggerated (high lateral noise), or the time reported is somehow too short, or the speed values contained in the GPX are generally too low, which could be a chipset or rounding error, or the result of some smoothing applied. With what tool were they recorded (or post-processed)?
They were recorded with osmand's Trip recording plugin.
I am curious to look at the fies, please PM or share with OsmAnd support. Any filters set for the recording?
I'm not aware that github has any kind of pm feature. I sent an email to contactus@osmand.net, ref is 26416. I am not aware of any kind of filter.
Thx! @vshcherb if you could forward the files via mail, I'd be hapy to take a look.
You can send it to support@osmand.net and we will take a look.
Done.
I've noted the same issue in my tracks and could provide more such files if this would be helpful.
If you can share a track here, please do!
I once wrote the analysis code years ago, but have yet to see a recorded track exhibiting this behavior.
Hope that helps to nailed it down.
@sonora forwarded
Thanks for the 3 tracks! Here's how it looks:
The average speed, which OsmAnd calculates from the contained time stamps and lateral position shifts while in motion, is correct in all 3 cases.
Having said that, the 3 tracks are slightly oversampled, meaning they are taken at low speeds of between 5 and 10 km/h, but with a point recorded every 5 seconds.
--> If you record similar tracks at sampling rates of 10 or 15 seconds (reasonable for e.g. jogging), I expect the effect to go away, can you please test?
My summary:
As a conclusion, we should probably leave the implementation as is (?)
@sonora Thanks for investigation! Do you suggest any special GPX recording settings to set for @nbrr? Like minimum recording speed, minimum error or something like that?
@sonora Independent question, did you consider to change some default GPX recording settings that we have today?
Both are tough questions.
I can primarily think of two key use cases for tracks recorded in OsmAnd:
Case 1 are the more casual users who will record tracks in OsmAnd and primarily view and analyze them only within OsmAnd.
For these tracks it is key that as recorded they immediately resemble as much as possible the corresponding real life shape and distance.
In order to achieve that, points should be recorded at least significantly (e.g. 5 times) further apart than the lateral accuracy, but close enough together to still be able to approximate the true shape of a track (i.e. not shortcut corners, true bends and curves, or narrow mountain switchbacks too much).
As an example , if the lateral hdop accuracy is 10 m, points on not too curvy trails could e.g. be recorded on average 50 m apart. If your speed is of the order of 10 km/h, this would mean a recording interval of 15 seconds. (Or alternatively choose a short recording interval of 1 or 5 seconds with the minimum displacement filter set to 50 m.)
Case 2 are tracks which will be analyzed or post-processed in advanced tools outside OsmAnd, and for these a high sampling rate to initially capture more data and improve statistics for later compression algorithms , and definitely the absence of any filtering at recording time may be key.
The situation seems also device dependent, I think different devices already apply different pre-processing before passing on GPS data to Android.
As a result, I think
Description
When a track is open, it shows an average speed that is higher than the max speed. e.g. average speed 11.5km/h, max speed 10.8 km/h.
How to reproduce?
Open GPX track, read speed section.
Your Environment
OsmAnd Version: OsmAnd+ 3.8.3 Android/iOS version: Android 8.0.0 Device model: LG-H870DS