Locus Map - forum

Content & Tools => Add-ons & Co-apps => Topic started by: Radim V on December 04, 2018, 22:47:16

Title: hasSpeed() inconsistency in track obtained via API
Post by: Radim V on December 04, 2018, 22:47:16
Hallo, I am developing something with Locus API, and in one of my debug dumps I noticed some inconsistency regarding methods  location.hasSpeed(). If you check attached files, namely lines 26, 34, 39 in the .dump file you should see what I mean. GPX file that I imported in locus and consequently got via standard API mechanism (ActionTools.getLocusTrack()) also attached.
Only first "trackpoint" has speed false, all other have speed true, but 0 which is incorrect I think. (location and timestamp are available) 
This is not pressing issue to me as I use location and timestamps to recalculate speed or force constant speed if track is not fully timestamped.
Thanks, Radim
Title: Re: hasSpeed() inconsistency in track obtained via API
Post by: Menion on December 14, 2018, 12:15:56
Just note: discussed over email.