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.

Files for encpoly, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size encpoly-0.2.0-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size encpoly-0.2.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page