Parsing OpenTracks .kml exports #871
pitastrudl
started this conversation in
General
Replies: 1 comment 2 replies
-
Thanks! PS: You may use GPX; then you don't have any of these problems as
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am working on a hobby project to visualize my hiked tracks and it includes parsing the track and it's data. Im using Python with Beautiful soup and I have a few questions regarding the format.
I did notice it has changed due to the empty coords tag implementation this year (2021). I've noticed this due to having some tracks from 202 and due to the indoor requests this means that the start and end will always have an empty "gx:coord/", ref: KML with empty gx:coords. #639.
I've dealt with this by removing the first and last elements(speed,elevation,timestamp,coord) since the starting timestamp and ending do not pose much of a accuracy risk. Not a question, more of an observation
I am wondering why inside a </gx:MultiTrack> there are multiple gx:Track? This is a single recorded track without manual pauses inside the application. It messed up my naive parsing a bit, which i am still trying to optimize. If i understand correctly, if you lets says, stop for lunch, it will be broken into multiple tracks inside a multitrack in the .kml file?
Related to the above questions, how can I be sure that the paired data (elevation gain, speed, timestamp and coords) is paired correctly when I parse the data? Right now I just assume ALL of the tags are in chronological order when I parse them out and put them into an array to be used further.
Are the Track tags always in chronological order inside a MultiTrack?
Thank you for this wonderful application, using it quite regularly!
Beta Was this translation helpful? Give feedback.
All reactions