Skip to content

About

Ruby implementation of time aware polyline

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Time Aware Polyline

This gem provides an implementation of the time aware polyline algorithm. The time aware polyline algorithm extends the polyline encoding algorithm in order to add support for timestamps.

Encoder

require 'time_aware_polyline'

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']
]

TimeAwarePolyline.encode_time_aware_polyline(points)

Decoder

require 'time_aware_polyline'

TimeAwarePolyline.decode_time_aware_polyline('spxsBsdb|Lymo`qvAx@TKvAr@K')

Related Implementations

About

Ruby implementation of time aware polyline

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages