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

Manually entering decimal distance e.g. 7.2 instead of 7 km

Some years ago I complained of being forced to enter whole numbers in the distance field when entering manual figures in the distance field (training - walking e.g.
I find this very annoying, and it should be a small issue to repair.

Some say it has to do with the language ro keyboard settings?

But how then can I change those for the better?

Nothing has changed since my first complaint.

CW

Android 11

Best Answer
1 REPLY 1

Hi @Chywan 

 

I tested the Create Activity Log endpoint and it does support inserting a decimal for distance.   Here's an example I created

 

curl -X POST "https://api.fitbit.com/1/user/-/activities.json?activityId=90013&manualCalories=20&startTime=04%3A00...distance=2.5"

-H "accept: application/x-www-form-urlencoded"

-H "authorization: Bearer <access_token>" -d ""

 

{"activityLog":{"activityId":90013,"activityParentId":90013,"activityParentName":"Walk","calories":20,"description":"Walking less than 2 mph, strolling very slowly","distance":2.5,"duration":28000,"hasActiveZoneMinutes":false,"hasStartTime":true,"isFavorite":false,"lastModified":"2022-01-12T20:55:25.648Z","logId":<id>,"name":"Walk","startDate":"2022-01-12","startTime":"04:00","steps":1578}}

 

Please let us know if you have problems doing it yourself.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes