Init from mapbox/cheap-ruler but more than that.
pip install -U polyline-ruler
git clone --recursive https://github.com/cubao/polyline-ruler
pip install ./polyline-ruler
Or
pip install git+https://github.com/cubao/polyline-ruler.git
(you can build wheels for later reuse by pip wheel git+https://github.com/cubao/polyline-ruler.git
)
See tests/test_basic.py
.
python3 tests/test_basic.py