No project description provided
Project description
gps-data-codec
Python library, implemented in Rust, that include base functions for encoding and decoding series of gps data (timestamp, latitude, longitude) using a algorithm similar to the one seen on encoded polylines.
Install
pip install gps-data-codec
Usage
>> from gps_data_codec import decode, encode
>> encode([(1628667993, 4.56543, -110.536214)]) # [(unix epoch in seconds, latitude, longitude), ...]
'qtaxyT}tzZhbtaT'
>> decode('qtaxyT}tzZhbtaT')
[(1628667993, 4.56543, -110.53621)]
Warning:
- timestamps are rounded to the closest integer value.
- latitudes and longitudes values are rounded to the 5th decimal precision when encoding.
- The series of timestamped locations must be sorted by timestamps in increasing order before encoding.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gps_data_codec-1.8.2-cp314-cp314-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: gps_data_codec-1.8.2-cp314-cp314-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 245.9 kB
- Tags: CPython 3.14, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dfaf94585a2bef091b7a1aeb3ffd33fa3f82fc63a2361d780692cd2f6102efb
|
|
| MD5 |
b78e97309417404ade67b485f12687a4
|
|
| BLAKE2b-256 |
84b72e09121acf9fcd4bfe480d44a9b11806436db501ee885c2560cc27678dec
|
File details
Details for the file gps_data_codec-1.8.2-cp313-cp313-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: gps_data_codec-1.8.2-cp313-cp313-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 245.9 kB
- Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6db0c9c4ad63c4a58e07af08b8592bb1018718014a1737ddc0b81196f4bc201
|
|
| MD5 |
27022c25009c03fa8f97723d1a16cbd5
|
|
| BLAKE2b-256 |
e952b03e1ea37f68a0607745032fb8eaa38284945346cff1605189ef1a03ec64
|
File details
Details for the file gps_data_codec-1.8.2-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: gps_data_codec-1.8.2-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 245.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155b0cc8864019240532fb9c66009c114e1df55e2809db4173dd7b7e7530a267
|
|
| MD5 |
d622a25d598b2d5b78587de1da1dabf1
|
|
| BLAKE2b-256 |
a5368457741ab12ef295c704125448f3779fb5d4db2f26a93cc4585a71ca7489
|
File details
Details for the file gps_data_codec-1.8.2-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: gps_data_codec-1.8.2-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 249.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a6f20705eea7e77e58762293b4dee1d1b4e9aace5f78d30ff25df0ea242cbba
|
|
| MD5 |
b6a135535b6142398ecd59edf1c041ba
|
|
| BLAKE2b-256 |
44820beff706ed139cdc8633d4b299ecc8fbc252100e775434134611a4d71862
|
File details
Details for the file gps_data_codec-1.8.2-cp310-cp310-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: gps_data_codec-1.8.2-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 249.0 kB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
235be7b6bf85da4e9110ce61dfa1de6666c5c0736fc6ffcc8ed88e8b2faa19dc
|
|
| MD5 |
221bfac76b6c916e7c57d7b50dc0017d
|
|
| BLAKE2b-256 |
26a9c09bff31a6a08a267719099897d2145bb00b681aded910649076704319e8
|