encpoly-0.2.0
توضیحات
Library for encoding/decoding geographic coordinates using Google's Encoded Polyline Algorithm
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | encpoly-0.2.0 |
| نام | encpoly |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | ['Matt Riggott'] |
| ایمیل نگهدارنده | ['matt.riggott@gmail.com'] |
| نویسنده | Matt Riggott |
| ایمیل نویسنده | matt.riggott@gmail.com |
| آدرس صفحه اصلی | https://github.com/JaGallup/encpoly |
| آدرس اینترنتی | https://pypi.org/project/encpoly/ |
| مجوز | GPL-3.0 |
The `encpoly` package is a Python 3 library for fast, Pythonic manipulation of [encoded polylines][].
[![Build status][tci]][tcl]
[![Code coverage report][cci]][ccl]
[![Package on PyPI][ppi]][ppl]
```python
>>> 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
[encoded polylines]: https://developers.google.com/maps/documentation/utilities/polylinealgorithm
[tci]: https://travis-ci.org/JaGallup/encpoly.svg?branch=master
[tcl]: https://travis-ci.org/JaGallup/encpoly
[cci]: https://img.shields.io/codecov/c/github/JaGallup/encpoly.svg
[ccl]: https://codecov.io/gh/JaGallup/encpoly
[ppi]: https://img.shields.io/pypi/v/encpoly.svg
[ppl]: https://pypi.org/project/encpoly/
[latest release]: https://github.com/JaGallup/encpoly/releases
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.4,<4.0 | Python |
نحوه نصب
نصب پکیج whl encpoly-0.2.0:
pip install encpoly-0.2.0.whl
نصب پکیج tar.gz encpoly-0.2.0:
pip install encpoly-0.2.0.tar.gz