Skip to content

Base functions for gps data encoding/compression implemented in rust.

Notifications You must be signed in to change notification settings

routechoices/gps-data-codec

Repository files navigation

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.