Google Fit, the open platform Google introduced at I/O to help developers build fitness apps, now has a preview SDK available.
For those new, Google Fit brings a “single set of APIs for app and device manufacturers to store and access activity data from fitness apps and sensors.” Using these APIs, fitness information and history can be used in apps to do things like personalize coaching, bring insights into health activities, and recommend fitness lifestyles.
Google Fit has already partnered with companies that include the likes of Adidas, Nike, Asus, HTC, LG, Motorola, Withings, and Runtastic.
There are three sets of APIs for developers, which Google describes as:
- Sensors API provides high-level access to sensors from the device and wearables—so with one API your app can talk to sensors, whether on an Android device or a wearable. So if you’re making a running app, you could register it to receive updates from a connected heart rate monitor every 5 seconds during a user’s run and give immediate feedback to the runner on the display.
- Recording API allows apps to register for battery-efficient, cloud-synced background collection of fitness data. For example, a running app could ask to store user’s location so it can map the run later. Once it registers for these data types, collection is done by Fit in the background with no further work needed by the app.
- History API allows operations on the data like read, insert and delete. When the exerciser finishes her run, the running app can query the History API for all locations during the run and show a map.
The Google Fit preview SDK is to be used by developers and manufacturers to start building apps that can be published later in the year when the full SDK goes public. To find instructions on how to get started, hit up the source link below.