gpt4 book ai didi

gpx - Strava (GPX) 元素是什么意思?

转载 作者:行者123 更新时间:2023-12-04 11:32:53 25 4
gpt4 key购买 nike

起亚,

我从 Strava 导出了我所有的 GPX 文件,所以我可以对它们进行一些分析,但我一直在试图弄清楚每个文件用于什么类型的事件。

例如,我的文件看起来像这样,其中 <type>元素似乎定义了事件类型。

<?xml version="1.0" encoding="UTF-8"?>
<gpx creator="StravaGPX iPhone" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" xmlns="http://www.topografix.com/GPX/1/1">
<metadata>
<time>2014-03-21T22:44:39Z</time>
</metadata>
<trk>
<name>Sugar Loaf</name>
<type>9</type>
<trkseg>
...

我知道(在我的脑海中)该事件是一次运行,但我找不到所有数字及其相应事件类型的任何文档。

Strava says :

Strava strives to comply with the FIT Activity File (FIT_FILE_TYPE = 4) spec as defined in the official FIT SDK.



这很好,但如果我查询 FIT SDK,我可以在 fit_profile.hpp 中找到以下内容文件:

typedef FIT_ENUM FIT_SPORT;
#define FIT_SPORT_INVALID FIT_ENUM_INVALID
#define FIT_SPORT_GENERIC ((FIT_SPORT)0)
#define FIT_SPORT_RUNNING ((FIT_SPORT)1)
#define FIT_SPORT_CYCLING ((FIT_SPORT)2)
#define FIT_SPORT_TRANSITION ((FIT_SPORT)3) // Mulitsport transition
#define FIT_SPORT_FITNESS_EQUIPMENT ((FIT_SPORT)4)
#define FIT_SPORT_SWIMMING ((FIT_SPORT)5)
#define FIT_SPORT_BASKETBALL ((FIT_SPORT)6)
#define FIT_SPORT_SOCCER ((FIT_SPORT)7)
#define FIT_SPORT_TENNIS ((FIT_SPORT)8)
#define FIT_SPORT_AMERICAN_FOOTBALL ((FIT_SPORT)9)
#define FIT_SPORT_TRAINING ((FIT_SPORT)10)
#define FIT_SPORT_WALKING ((FIT_SPORT)11)
...

我也可以在同一个 fit_profile.hpp 中找到文件:

#define FIT_FILE_ACTIVITY                             ((FIT_FILE)4) // Read/erase, multiple files. Directory=Activities

这会向我确认它确实是一个事件文件。

有谁知道我在哪里可以找到这些整数的引用?

最佳答案

通过实验,我制作了这个列表。

 1: Ride
2: Alpine Ski
3: Backcountry Ski
4: Hike
5: Ice Skate
6: Inline Skate
7: Nordic Ski
8: Roller Ski
9: Run
10: Walk
11: Workout
12: Snowboard
13: Snowshoe
14: Kitesurf
15: Windsurf
16: Swim
17: Virtual Ride
18: E-Bike Ride
19: Velomobile
21: Canoe
22: Kayaking
23: Rowing
24: Stand Up Paddling
25: Surfing
26: Crossfit
27: Elliptical
28: Rock Climb
29: Stair-Stepper
30: Weight Training
31: Yoga
51: Handcycle
52: Wheelchair
53: Virtual Run
我怀疑 20 是用于航行,但 Strava 不会让我将任何事件设置为航行以进行检查。

关于gpx - Strava (GPX) <type></type> 元素是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61903437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com