How should I build GPX contains cycle power data
8beeeaaat opened this issue · 2 comments
8beeeaaat commented
I want add <power>number</power>
extensions per trkpt
like this sample.
<trkpt lat="35.7309780" lon="139.4890750">
<ele>42.6</ele>
<time>2019-06-25T10:15:09Z</time>
<extensions>
<power>0</power>
<gpxtpx:TrackPointExtension>
<gpxtpx:atemp>21</gpxtpx:atemp>
<gpxtpx:hr>80</gpxtpx:hr>
<gpxtpx:cad>0</gpxtpx:cad>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>
fabulator commented
You can just put whatever you want into extensions. I updated the creation of point in readme example.
new Point(51.02832496166229, 15.515156626701355, {
ele: 314.715,
time: new Date('2018-06-10T17:29:35Z'),
hr: 120,
extensions: {
power: 5,
},
})
8beeeaaat commented
@fabulator Thank you so much!! 🙏