1.0.5 • Published 6 years ago

googlefit-rest-utils v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

googlefit-rest-utils

Utilities for Google Fit REST API

Install

npm i --save googlefit-rest-utils

Usage

Given

var activityData = {
 "dataSourceId": "derived:com.google.distance.delta:com.google.android.gms:pruned_distance",
 "point": [
 ...
 ]
};

var distanceData = {
 "dataSourceId": "derived:com.google.activity.segment:com.google.android.gms:merge_activity_segments",
 "point": [
 ...
 ]
};

When

  var gFitUtils = require('googlefit-rest-utils');
  var distanceByBucket = gFitUtils.bucketByActivityType(distanceData.point, activityData.point);

Then

   {
      '0': 345.123,
      '7': 123.35,
      ....
   }

About us

http://www.fitsquadapp.com

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago