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

What are the possible values for distanceUnit in the web API?

Hi:

 

I am working on accessing the FitBit activities, and can't find a list of all the distanceUnits that might be associated with an activity.  I know that there are Kilometer and Mile, are there any others?  Is there documentation that contains an exhaustive list?

 

Thanks,

 

Joe

Best Answer
0 Votes
1 REPLY 1

Hi @jcelano,

 

Welcome to the forums!

 

You can find a list of units here. Depending on what metric system the user selected during account creation, the units returned for that metric system will always be returned by default. When you include the accept-language header with the desired unit system in your requests, you'll be returned with that unit system instead of the user's default selection.

 

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

Best Answer
0 Votes