Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance Data only shows aggregated data #105

Open
nestorLanex2 opened this issue Jun 20, 2024 · 0 comments
Open

Distance Data only shows aggregated data #105

nestorLanex2 opened this issue Jun 20, 2024 · 0 comments

Comments

@nestorLanex2
Copy link

I tried to sync the distances data from google fit to health connect and retrieve those data from the health connect into my app. I got the broken down distance records, but I cannot identify from which activity they are from.

is it not possible to retrieve the activity each distance record is associated with? as per how google fit logs an activity and stores it in their database?

[{"metadata":{"recordingMethod":0,"device":0,"clientRecordVersion":0,"dataOrigin":"com.google.android.apps.fitness","clientRecordId":null,"lastModifiedTime":"2024-06-13T10:46:05.566Z","id":"7c6894ad-6546-44ec-89f8-abb87733983f"},"distance":{"inInches":54330.708661417324,"inMiles":0.8574943765767333,"inFeet":4527.55905511811,"inKilometers":1.38,"inMeters":1380},"endTime":"2024-06-13T10:20:30.585Z","startTime":"2024-06-13T10:15:30.584Z"},{"metadata":{"recordingMethod":0,"device":0,"clientRecordVersion":0,"dataOrigin":"com.google.android.apps.fitness","clientRecordId":null,"lastModifiedTime":"2024-06-10T11:11:56.809Z","id":"61bca0b2-6b02-4fd8-8d69-c4b14a408d74"},"distance":{"inInches":39370.078740157485,"inMiles":0.6213727366498067,"inFeet":3280.839895013123,"inKilometers":1,"inMeters":1000},"endTime":"2024-06-10T10:48:08.969Z","startTime":"2024-06-10T10:41:08.968Z"},{"metadata":{"recordingMethod":0,"device":0,"clientRecordVersion":0,"dataOrigin":"com.google.android.apps.fitness","clientRecordId":null,"lastModifiedTime":"2024-06-10T08:41:56.911Z","id":"57d51a98-381b-4f08-8ec9-9d51af7be615"},"distance":{"inInches":19685.039370078743,"inMiles":0.3106863683249034,"inFeet":1640.4199475065616,"inKilometers":0.5,"inMeters":500},"endTime":"2024-06-10T07:34:00.001Z","startTime":"2024-06-10T07:29:00Z"}]

currently this is the data structure i'm getting from the library. It lacks something like, {activity: "running"}, or something for each of the distance records

Screenshot 2024-06-20 at 4 00 48 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant