Skip to main content

Library for encoding/decoding geographic coordinates using Google's Encoded Polyline Algorithm

Project description

The encpoly package is a Python 3 library for fast, Pythonic manipulation of encoded polylines.

Build status Code coverage report Package on PyPI

>>> from encpoly import encode, decode
>>> coords = ((38.5, -120.2), (40.7, -120.95), (43.252, -126.453))
>>> encode(coords)
'_p~iF~ps|U_ulLnnqC_mqNvxq`@'
>>> tuple(decode("_p~iF~ps|U_ulLnnqC_mqNvxq`@"))
([38.5, -120.2], [40.7, -120.95], [43.252, -126.453])

You can use Pip to install the latest release from PyPi:

pip install encpoly

Project details


Download files

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

Source Distribution

encpoly-0.2.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

encpoly-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file encpoly-0.2.0.tar.gz.

File metadata

  • Download URL: encpoly-0.2.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.6.6 Darwin/18.2.0

File hashes

Hashes for encpoly-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98c2a1526c7a3cddce1d7cec903869c94ce6fc6378486f8676a1d2d448c03a4f
MD5 97e4f9a3fea894f2cae6f8d31eea7118
BLAKE2b-256 4e8af3068b05eeabef5e0220065d8d350bb14d0d61df3b2c03b348803fbbdc37

See more details on using hashes here.

File details

Details for the file encpoly-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: encpoly-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.6.6 Darwin/18.2.0

File hashes

Hashes for encpoly-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36fa9ff6630993d8e3ebe82006b3b74c1d166ff9e5628394db01d2a2b0402cc3
MD5 97935486f9c23a15d2789b6e0787a5ad
BLAKE2b-256 884425be85df57a8644424bbad6e34408e9600a4bcc102ca41803ba6f0193448

See more details on using hashes here.

Supported by

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