elliotstokes / gpx-parse

GPX parser
MIT License
44 stars 40 forks source link

avoid crash when a track has no track segments. Fixes #39 #40

Closed JuanIrache closed 3 years ago

elliotstokes commented 3 years ago

Thanks for this! I've kind of stopped working on it many years ago. But happy to merge this in!

JuanIrache commented 3 years ago

On my end I also added an option to return any extensions of trackpoints as a JSON string in the comments, thus allowing to read stuff like heart rate and cadence, when present. I'm not sure you'd want me to PR that part, as the implementation is messy. Do you?