- Which datasource the Google Fit app use to calculate step count?
Google Fit App uses the estimated_steps data source to calculate step counts.
DataSourceId: derived:com.google.step_count.delta:com.google.android.gms:estimated_steps
- Why there are different between datasources's value and Google Fit value?
Each data source represents a different device/source. I see you have a Sony Smart Watch and a HTC Desire connected to Google Fit. Each of your devices reports values to Fit which are merged together. Merge_step_deltas gives you the merged stream of all your step counters. Estimated_steps also takes into account activity, and estimates steps when there are none.
- How can I get the Google Fit value?
REST API can only access data which has been synced to the backend.
To get same values as Google Fit, read estimated_steps data source. It should be the same as what you see on https://fit.google.com/. The device could have latest values which are not yet synced to the server. We are working on making the syncs and the cross-platform experience more seamless.
-- Engineer on Google Fit Team.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…