Fast Google Polyline encoding and decoding using Rust FFI
Project description
Usage
from pypolyline.util import encode_coordinates, decode_polyline coords = [ [52.64125, 23.70162], [52.64938, 23.70154], [52.64957, 23.68546], [52.64122, 23.68549], [52.64125, 23.70162] ] # precision is 5 for Google Polyline, 6 for OSRM / Valhalla polyline = encode_coordinates(coords, 5) # polyline is 'ynh`IcftoCyq@Ne@ncBds@EEycB' decoded_coords = decode_polyline(polyline, 5)
How it Works
FFI using ctypes and a Rust binary
License
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pypolyline-0.1.4-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87d7f6a799a7e8640940886fb186d0c266cfe11e4bf01d3c53fd35d731361f61 |
|
MD5 | 993be6b71167c8842102235fa00ce17e |
|
BLAKE2b-256 | bba11470ca2a2904c6788261a4475184b2001869e48feb484a498d4e865b5594 |
Close
Hashes for pypolyline-0.1.4-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bab31b356dec8f74d75e364401e94a5a157ae0ac4fc355ea597d8217ecd3b17 |
|
MD5 | 37f29c743c7a2aa6f2be2d81b94e4abb |
|
BLAKE2b-256 | 2e9f6f8b5d28947152e76367e7929cbe65bd950a006518a4e019273f2725694c |
Close
Hashes for pypolyline-0.1.4-py2.py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613be50692d5318581ec9dca395c3e4f363b15b48500aad993f4000f26bf44f5 |
|
MD5 | a07c4d6587f1fa1e990819218ca5199c |
|
BLAKE2b-256 | edb79b0e3d91cdf6f2bfa5f61c5c703d322fbadd5875570aa8c6fc389c5c2821 |
Close
Hashes for pypolyline-0.1.4-py2.py3-none-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22236a8cfdf08824031b136d9da272c85969cd1ec9cf21f758082bd13d0f1bd6 |
|
MD5 | cdc1d062aa919520d86c89a4cd3ac6d9 |
|
BLAKE2b-256 | 97ce7adf270fed7e322e6ba5cef6f7d5dcedd49b37b54279662912fd60e2e82f |