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

Measure unit of distance seems to always be miles

distanceUnit always returns as miles, regardless if I choose km or not.


https://api.fitbit.com/1/user/xxxxxx/activities/list.json?afterDate=2020-06-26&sort=asc&limit=20&off...

Best Answer
0 Votes
1 REPLY 1

Hi @Abhiiiii,

 

Welcome to the forums!

 

Have you tried including the accept-language = en_GB header in your HTTP request? This should ensure that the data returned is localized in the language you specify. Otherwise, the API will always return the user's preferred unit of measurement that was specified in their profile. You can check using the GET Profile endpoint.

 

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

Best Answer
0 Votes