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
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...
- The list of GPS points must be sorted by increasing timestamps.