Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gps_data_codec-1.8.2-cp314-cp314-manylinux_2_28_x86_64.whl (245.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

gps_data_codec-1.8.2-cp313-cp313-manylinux_2_28_x86_64.whl (245.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

gps_data_codec-1.8.2-cp312-cp312-manylinux_2_28_x86_64.whl (245.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

gps_data_codec-1.8.2-cp311-cp311-manylinux_2_28_x86_64.whl (249.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

gps_data_codec-1.8.2-cp310-cp310-manylinux_2_28_x86_64.whl (249.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file gps_data_codec-1.8.2-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gps_data_codec-1.8.2-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2dfaf94585a2bef091b7a1aeb3ffd33fa3f82fc63a2361d780692cd2f6102efb
MD5 b78e97309417404ade67b485f12687a4
BLAKE2b-256 84b72e09121acf9fcd4bfe480d44a9b11806436db501ee885c2560cc27678dec

See more details on using hashes here.

File details

Details for the file gps_data_codec-1.8.2-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gps_data_codec-1.8.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c6db0c9c4ad63c4a58e07af08b8592bb1018718014a1737ddc0b81196f4bc201
MD5 27022c25009c03fa8f97723d1a16cbd5
BLAKE2b-256 e952b03e1ea37f68a0607745032fb8eaa38284945346cff1605189ef1a03ec64

See more details on using hashes here.

File details

Details for the file gps_data_codec-1.8.2-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gps_data_codec-1.8.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 155b0cc8864019240532fb9c66009c114e1df55e2809db4173dd7b7e7530a267
MD5 d622a25d598b2d5b78587de1da1dabf1
BLAKE2b-256 a5368457741ab12ef295c704125448f3779fb5d4db2f26a93cc4585a71ca7489

See more details on using hashes here.

File details

Details for the file gps_data_codec-1.8.2-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gps_data_codec-1.8.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7a6f20705eea7e77e58762293b4dee1d1b4e9aace5f78d30ff25df0ea242cbba
MD5 b6a135535b6142398ecd59edf1c041ba
BLAKE2b-256 44820beff706ed139cdc8633d4b299ecc8fbc252100e775434134611a4d71862

See more details on using hashes here.

File details

Details for the file gps_data_codec-1.8.2-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gps_data_codec-1.8.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 235be7b6bf85da4e9110ce61dfa1de6666c5c0736fc6ffcc8ed88e8b2faa19dc
MD5 221bfac76b6c916e7c57d7b50dc0017d
BLAKE2b-256 26a9c09bff31a6a08a267719099897d2145bb00b681aded910649076704319e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page