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

Access to gpx extensions #40

Closed
andreasflosdorf opened this issue Sep 25, 2021 · 1 comment
Closed

Access to gpx extensions #40

andreasflosdorf opened this issue Sep 25, 2021 · 1 comment

Comments

@andreasflosdorf
Copy link
Contributor

The parser implements the standard Topografix GPX 1.1, in which the attribute 'speed' is not defined, unlike in 1.0. Nevertheless, it is possible as an optional extension. There is also a test case, that includes this attribute, see:
https://github.com/ticofab/android-gpx-parser/blob/master/app/src/main/assets/test.gpx

In the API (io.ticofab.androidgpxparser.parser.domain.TrackPoint) there is no way to access extensions to get the attribute 'speed' if it is present in the gpx file. Speed can be calculated by using existing data (distance and time differences), but if this information is availlavle in the gpx file, there are reasons to use this information. An extension to the API that allows access to GPX Extensions would be great.

@ticofab
Copy link
Owner

ticofab commented Nov 25, 2021

Added in 2.2.0

@ticofab ticofab closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants