06-05-2018 07:53 - edited 06-06-2018 01:49
06-05-2018 07:53 - edited 06-06-2018 01:49
what is the distance unit the data is returned in this API
https://api.fitbit.com/1/user/-/activities/tracker/distance/date/2018-01-26/2018-01-27.json
Will this API always return Distance in kilometers even I setup my Distance Unit = Miles in the Fitbit App?
Is there API to get the user's distance setup (Miles/Kilo Meters)?
Thanks in advance.
06-12-2018 09:36
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
06-12-2018 09:36
@SowmiyaMadesh I answered your question on another post where you commented. We will send the data back in the unit defined by the Accept-Language header. The Accept-Language values "en_US" and "en_GB" are case sensitive. If you use the Accept-Language header en_US, then your distance unit data should return in miles.
https://dev.fitbit.com/build/reference/web-api/basics/
Best Answer09-18-2018 12:04
09-18-2018 12:04
This is such a poorly documented API. Can you please add that to https://dev.fitbit.com/build/reference/web-api/activity/#get-daily-activity-summary
Best Answer09-18-2018 14:08
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
09-18-2018 14:08
Hi @KidA001. Thank you for the feedback on the documentation. I'll see what we can do to improve the documentation in that area.
Best Answer