Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 577 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 577 Bytes

gps-data-codec

Python library, implemented in rust, including base functions for encoding and decoding of gps data (timestamp, latitude, and longitude) using leb128 algorythm. It is used to store competitors data on https://www.routechoices.com

install

pip install gps-data-codec
>> import gps_data_codec
>> gps_data_codec.encode([(1628667993, 4.56543, -110.536214), ]) # [(time, lat, lon), ...]
'qtaxyT}tzZhbtaT'
>> gps_data_codec.decode('qtaxyT}tzZhbtaT')
[(1628...

Warning:

  • The list of GPS points must be sorted by increasing timestamps.