fcrespel / runtastic-export-converter

Command-line tool to convert Runtastic JSON export files to GPX/TCX
MIT License
1 stars 2 forks source link

mapSport(String sportTypeId) needs further adaptations. #6

Open ImfeldC opened 4 years ago

ImfeldC commented 4 years ago

A GPX export from Strava gives me type 4 for Hiking. Not sure there's an official list for these...

Requires more investigation, it seems not clear what/how to map. mapSport(String sportTypeId) needs further adaptations. E.g. for GPX output the sport type can be added in plain text. See also https://www.topografix.com/gpx_manual.asp#type

fcrespel commented 4 years ago

The data_information.pdf file in recent Runtastic exports has an appendix with the mapping between Runtastic sport type IDs and labels. For GPX exports we could probably use the labels as-is.

Here it is for reference:

01 Running
02 Nordic Walking
03 Cycling
04 Mountain Biking
05 Other
06 Inline Skating
07 Hiking
08 Cross-country skiing
09 Skiing
10 Snowboarding
11 Motorbike
13 Snowshoeing
14 Treadmill
15 Ergometer
16 Elliptical
17 Rowing
18 Swimming
19 Walking
20 Riding
21 Golfing
22 Race Cycling
23 Tennis
24 Badminton
25 Squash
26 Yoga
27 Aerobics
28 Martial Arts
29 Sailing
30 Windsurfing
31 Pilates
32 Rock Climbing
33 Frisbee
34 Strength Training
35 Volleyball
36 Handbike
37 Cross Skating
38 Soccer
42 Surfing
43 Kitesurfing
44 Kayaking
45 Basketball
46 Spinning
47 Paragliding
48 Wakeboarding
50 Diving
51 Table Tennis
52 Handball
53 Back-country skiing
54 Ice Skating
55 Sledding
58 Curling
60 Biathlon
61 Kite Skiing
62 Speed Skiing
63 PushUps
64 SitUps
65 PullUps
66 Squats
67 American Football
68 Baseball
69 Crossfit
70 Dancing
71 Ice Hockey
72 Skateboarding
73 Zumba
74 Gymnastics
75 Rugby
76 Standup Paddling
77 Sixpack
78 Butt Training
80 Leg Training
81 Results Workout