sports-alliance / sports-lib

A Library for processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc
GNU Affero General Public License v3.0
149 stars 21 forks source link

Incorrect transformation of TCX to GPX #72

Open frohlichcortezh opened 3 years ago

frohlichcortezh commented 3 years ago

I wrote a simple node app using this lib to convert TCX files from Endomondo, to GPX so I could import them into FitoTrack.

Here are the original TCX file from Endomondo and the GPX file generated after using the lib. 2020-11-09 12_18_49.0.TCX.TXT 2020-11-09 12_18_49.0.GPX.TXT

Since there's no track type FitoTrack tags it as "Other". Would it be possible to convert TCX <Activity Sport="Running"> to GPX <trk>...<type>Running</type>...</trk> ?