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

Bug in veryActive distance figure

ANSWERED

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
    )
)

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

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
0 Votes