ticofab / android-gpx-parser

A library to parse XML Gpx files, built for Android.
Apache License 2.0
123 stars 44 forks source link

Access to gpx extensions #40

Closed andreasflosdorf closed 2 years ago

andreasflosdorf commented 3 years ago

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 commented 2 years ago

Added in 2.2.0