The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
03-24-2024 03:28 PM
I searched the documentation and couldn't find how I can access partial km information.
Example: 5km run
1st km - 4.56
2nd km - 4.59
3rd km - 5.10
4th km - 5.23
5th km - 5.43
There is a way to list all activities for a given period and have access to the following information that I included in the example above.
Solved! Go to Solution.
03-25-2024 06:02 AM - edited 03-25-2024 06:07 AM
It's returned as keys splits_metric and splits_standard in the data from a call to getActivityById
"splits_metric":[
{
"distance":1001.8, //Meters
"elapsed_time":366, //Seconds
"elevation_difference":-20.6, //Meters
"moving_time":108, //Seconds
"split":1, //Split # (will increment each entry)
"average_speed":9.28, //Meters/second
"average_grade_adjusted_speed":null, //GAP, m/s
"average_heartrate":124.30841121495327, //BPM
"pace_zone":0 //Zone number
},
...
],
"splits_standard": [
{
"distance":1615.1,
"elapsed_time":423,
"elevation_difference":-33.2,
"moving_time":165,
"split":1,
"average_speed":9.79,
"average_grade_adjusted_speed":null,
"average_heartrate":130.54268292682926,
"pace_zone":0
},
...
]
The splits are quite close to but not always exactly 1km/1mi. It comes down to the recording frequency of the device used since most are only saving data every second or so. At slower speeds the splits will be closer to exact kilometers or miles.
03-25-2024 06:02 AM - edited 03-25-2024 06:07 AM
It's returned as keys splits_metric and splits_standard in the data from a call to getActivityById
"splits_metric":[
{
"distance":1001.8, //Meters
"elapsed_time":366, //Seconds
"elevation_difference":-20.6, //Meters
"moving_time":108, //Seconds
"split":1, //Split # (will increment each entry)
"average_speed":9.28, //Meters/second
"average_grade_adjusted_speed":null, //GAP, m/s
"average_heartrate":124.30841121495327, //BPM
"pace_zone":0 //Zone number
},
...
],
"splits_standard": [
{
"distance":1615.1,
"elapsed_time":423,
"elevation_difference":-33.2,
"moving_time":165,
"split":1,
"average_speed":9.79,
"average_grade_adjusted_speed":null,
"average_heartrate":130.54268292682926,
"pace_zone":0
},
...
]
The splits are quite close to but not always exactly 1km/1mi. It comes down to the recording frequency of the device used since most are only saving data every second or so. At slower speeds the splits will be closer to exact kilometers or miles.
Welcome to the Community - here is your guide to help you get started!