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.
>>> 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])
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 Distribution
encpoly-0.1.0.tar.gz
(2.4 kB
view hashes)