Init from mapbox/cheap-ruler but more than that.
pip install -U polyline-rulergit clone --recursive https://github.com/cubao/polyline-ruler
pip install ./polyline-rulerOr
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