cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the athlete's partial km

RB
Shkhara

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.

1 ACCEPTED SOLUTION

ActivityFix
Kilimanjaro

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.

View solution in original post

1 REPLY 1

ActivityFix
Kilimanjaro

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.