OSM Road Length
A tool to get the highway length from Open Street Maps of a region using Python.
It supports any region size and shape.
Installing
pip install osm-road-length
Using
Import It
import osm_road_length
Get length from geometry
from shapely import wkt
geometry = wkt.loads('POLYGON((-43.2958811591311 -22.853167273541693,-43.30961406928735 -23.035275736044728,-43.115980036084224 -23.02010939749927,-43.157178766552974 -22.832917893834313,-43.2958811591311 -22.853167273541693))')
length = osm_road_length.get(geometry)
Credits
Free software: MIT license
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.5 (2020-04-22)
Add simplify method
0.1.0 (2020-04-21)
First release on PyPI.
Metadata
Release files for osm-road-length 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| osm-road-length-0.1.5.tar.gz | 12.5 kB | Details |
Release files / osm-road-length-0.1.5.tar.gz
| Download URL | osm-road-length-0.1.5.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8864ea011f39fe11c83651e51a25fdafd956a7b9d755c5fd884bc75d6756d487
|
|
BLAKE2b-256 checksum How to use checksums |
0835e253038919beb3e460089e3c146e51918b3973a2d7cf9e049127b71e48e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
|