SkillAgentSearch skills...

Encpoly

Python 3 library for encoding/decoding geographic coordinates using Google's Encoded Polyline Algorithm

Install / Use

/learn @JaGallup/Encpoly
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars9
CategoryDevelopment
Updated3y ago
Forks0

Languages

Python

Security Score

75/100

Audited on Mar 24, 2023

No findings