@@ -294,6 +294,71 @@ the function will be called with an array of elements `res` containing date and
...
@@ -294,6 +294,71 @@ the function will be called with an array of elements `res` containing date and
___
___
#### **`getDistanceWalkingRunning`**
get the total distance walking/running on a specific day.
`getDistanceWalkingRunning` accepts an options object containing optional *`date: ISO8601Timestamp`* and *`unit: string`*. if `date` is not provided it will default to the current time. `unit` defaults to `meter`
```javascript
letoptions={
unit:'mile',// optional; default 'meter'
date:(newDate(2016,5,1)).toISOString(),// optional; default now
`getDistanceCycling` accepts an options object containing optional *`date: ISO8601Timestamp`* and *`unit: string`*. if `date` is not provided it will default to the current time. `unit` defaults to `meter`
```javascript
letoptions={
unit:'meter',// optional; default 'meter'
date:(newDate(2016,5,1)).toISOString(),// optional; default now
get the total flights climbed (1 flight is ~10ft of elevation) on a specific day.
`getFlightsClimbed` accepts an options object containing optional *`date: ISO8601Timestamp`*. if `date` is not provided it will default to the current time.
```javascript
letoptions={
date:(newDate(2016,5,1)).toISOString(),// optional; default now