04-08-2016 09:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-08-2016 09:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am trying to post walking but the actual values posted are different than the values passed. The documentation doesn't explain why this is. In the post parameters I am passing a distance=6, steps=10000, and durationMillis=7200000. What gets posted is: steps=8620, distance = 3.73 miles. Can someone please explain what is going on?
Answered! Go to the Best Answer.

Accepted Solutions
04-08-2016 10:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-08-2016 10:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The Fitbit Web API always assumes metric units. If you want to use other unit systems, check out the localization documentation.

04-08-2016 09:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-08-2016 09:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
6km is 3.7miles
So I guess you're posting in metric units (if not specified I think the API guesses this from the language), but displaying in imperial?
04-08-2016 10:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-08-2016 10:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The Fitbit Web API always assumes metric units. If you want to use other unit systems, check out the localization documentation.

04-08-2016 12:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-08-2016 12:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yeah unfortunately the documentation just tells you that you need to Accept-Header=en_Us but doesn't tell you how to do it or where to do it.

04-08-2016 13:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-08-2016 13:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Headers are a part of every HTTP request. You should consult the documentation for the HTTP library you're using on how to add a header.

