-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
e.g.: point.extensions.get("hr") #119
Comments
I have now made this:
Any idea how to make this better? How to get easier the "name" of the extensions? |
Keep in mind that an extension can theoretically contain multiple extensions and each can be any kind of xml subtree, for example:
And now you need a simple and easy way to get the |
Any idea how to make a simple to use API ? |
Well, no, not yet :) But, now that you asked, here are a couple of ideas: Maybe something like:
Or, let's suppose there san be multiple
...and Or maybe:
|
This looks ugly ;)
This looks ok... Maybe "number" -> "float" ?!? Because there can be multiple entries: |
Yes, I agree (including the "ugly" remark ;) ). Also, the API should allow for a way to retrieve attributes. Something like this:
Or maybe:
|
;) |
Just curious if there is a solution here-- gpx from Strava have hr, cadance, etc data as extensions like this:
However, as far as I can tell, I don't think this data is getting brought into the |
Here's a working version from Strava, @pwolfram. It's not the prettiest, but it works.
|
@andyreagan @pwolfram Would love to knov if your strava files convert with
|
@astrowonk confirmed, this works perfectly! |
It would be cool to easier get values from gpx extensions.
e.g.:
Don't know if it possible to get integers here. Is somewhere the information about the extension types?!?
The text was updated successfully, but these errors were encountered: