09-08-2014 03:52
09-08-2014 03:52
Dear Dev Team,
I logged the activity "Run, for 1 hour, 13 km" (what means being very active).
When I call the getActivity API, the distance figure of the "logged activity", and the figures for the distances named "total" and "loggedActivities" are all with the correct value.
However, the figure for the distance named "veryActive", which I expected to see as 13km, is 12.98km.
Is there any reason for that, or is it a bug?
stdClass Object
(
[activities] => Array
(
[0] => stdClass Object
(
[activityId] => 12090
[activityParentId] => 90009
[activityParentName] => Run
[calories] => 1010
[description] => 8 mph (7.5 min/mile)
[distance] => 13
[duration] => 3600000
[hasStartTime] => 1
[isFavorite] =>
[lastModified] => 2014-09-08T10:23:52.873Z
[logId] => 100788122
[name] => Run
[startDate] => 2014-09-08
[startTime] => 08:00
[steps] => 13727
)
)
[goals] => stdClass Object
(
[activeMinutes] => 30
[caloriesOut] => 2924
[distance] => 8.05
[steps] => 10000
)
[summary] => stdClass Object
(
[activeScore] => -1
[activityCalories] => 1010
[caloriesBMR] => 784
[caloriesOut] => 1720
[distances] => Array
(
[0] => stdClass Object
(
[activity] => total
[distance] => 13
)
[1] => stdClass Object
(
[activity] => tracker
[distance] => 0
)
[2] => stdClass Object
(
[activity] => loggedActivities
[distance] => 13
)
[3] => stdClass Object
(
[activity] => veryActive
[distance] => 12.98
)
[4] => stdClass Object
(
[activity] => moderatelyActive
[distance] => 0
)
[5] => stdClass Object
(
[activity] => lightlyActive
[distance] => 0
)
[6] => stdClass Object
(
[activity] => sedentaryActive
[distance] => 0
)
[7] => stdClass Object
(
[activity] => Run
[distance] => 13
)
)
[fairlyActiveMinutes] => 0
[lightlyActiveMinutes] => 0
[marginalCalories] => 916
[sedentaryMinutes] => 570
[steps] => 13727
[veryActiveMinutes] => 60
)
)
Answered! Go to the Best Answer.
Best Answer09-29-2014 11:31
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-29-2014 11:31
Manually logged activity distances are converted to and stored as steps. The number of steps is calculated by dividing the activity distance by the walking or running stride length. Because of this, there is a small margin of error in the rounding.
Best Answer09-29-2014 11:31
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-29-2014 11:31
Manually logged activity distances are converted to and stored as steps. The number of steps is calculated by dividing the activity distance by the walking or running stride length. Because of this, there is a small margin of error in the rounding.
Best Answer