Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pace detail missing in TCX for treadmill runs

I'm investigating an issue where a user's pace data (distance/time) isn't available in the TCX download of a treadmill run. I've attached links to the json activity list summary data below and also to the TCX file. 

 

I have 2 questions:

 

  • I'm setting the includePartialTCX flag. Shouldn't that mean I'll get the pace details even though it's a treadmill run?

 

  • If it's not possible to get the pace details for activities like this one, is there an indication from the json activity list summary that I can use to recognize that the activity has no pace details, and then skip the TCX import?

 

(request url)

https://api.fitbit.com/1/user/-/activities/28140577058.tcx?includePartialTCX=true

 

https://www.dropbox.com/s/vt0376qfkf8ilz0/28140577058.json?dl=0

https://www.dropbox.com/s/vbeezxldxhpytiv/28140577058.tcx?dl=0

 

Thanks,

 

Chris

(smashrun)

(smashrun)

Best Answer
0 Votes
1 REPLY 1

Hi @smashrun,

 

From my understanding, your pace is only associated with activities tracked with GPS, which is why you're not able to pull this data from a Treadmill activity.

 

The only indication that I know of, that you can use to determine whether or not an activity will have pace details is if you query the Get Activity Logs List endpoint and search for the "logType" element. If logType=mobile_run, then this is a GPS activity with pace details present. If anything other than mobile_run, pace will not be present, such as the following:

  • auto_detected
  • fitstar
  • manual
  • tracker

I hope this helps. Please let me know if you have any additional questions.

Best Answer
0 Votes