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

Distance values - miles or km?

Using the Web API,   various calls will include a 'distance' attribute value.

However,  I can't find a way of determining the unit of distance,   whether the value represents miles or kilometres.

Any suggestions?

Best Answer
0 Votes
1 REPLY 1

Hi @IanHayes,

 

The distance traveled for the day displayed in the activity is defined by the Accept-Language header. You can also use the Get Profile endpoint to see what unit preference the Fitbit user selected by locating the distanceUnit element in the response.

 

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

Best Answer
0 Votes