Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extension handling #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add extension handling #36

wants to merge 2 commits into from

Conversation

gazhay
Copy link

@gazhay gazhay commented Oct 25, 2021

I had a need to extract various extra data that had been added to the gpx track points in an extension tag.

This code allows the user to specify which fields to append to each trackpoint.
If a value is not found, appends the value null, otherwise appends the value.

Basic handling - will find Hr,cadence and power and add them to the results.
Could probably iterate any field in the extensions and add it or allow the user to specify.
Can pass an optional array of strings to search gpx extensions for.
will either add null or the value if found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant