time aware polyline hypertrack decode encode
npm install time-aware-polyline  
Time aware polylines can be used to mark time events on polylines, or run a trip replay, like in the HyperTrack dashboard.
$ npm i time-aware-polyline
`Encoder
`javascript
var polylineUtil = require('time-aware-polyline');var points = [
[19.13626, 72.92506, '2016-07-21T05:43:09+00:00'],
[19.13597, 72.92495, '2016-07-21T05:43:15+00:00'],
[19.13553, 72.92469, '2016-07-21T05:43:21+00:00']
]
polylineUtil.encodeTimeAwarePolyline(points);
`Decoder
`javascript
var polylineUtil = require('time-aware-polyline');var polyline = 'spxsBsdb|Lymo
qvAx@TKvAr@K';Testing
To run the tests, you will need to install npm. Use the following command to run the tests.`
$ npm test
``