No commit activity in last 3 years
No release in over 3 years
Time aware ployline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

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