A python package for extracting signalized intersections from OpenStreetMap
Project description
OSMint
This is a Python package for extracting signalized intersections from OpenStreetMap. We use Overpass API to collect raw data about traffic signals, road segments, and turn restrictions from OpenStreetMap. Then, the package generates a signalized intersection dataset through a pipeline with imputation mechanisms for various missing values (lane count, speed limit, turns, gradient, etc) and algorithms for detecting turns and combining one-ways that should have been a divided two-way. An example output for representing a road intersection is shown below.
Installation
Please run the following command in terminal to install the package and other dependencies.
$ pip install OSMint
Example Usage
To generate the signalized intersection dataset for a specified region:
from OSMint import get_data
city = "Salt Lake City"
state = "UT"
intersections = get_data(city, state)
We provide a sumo converter to convert the collected intersections into sumo files to support various applications:
from OSMint.sumo import gen_sumo
output = "sumo/" # enter the directory for storing sumo files
gen_sumo(intersections, output)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file OSMint-0.0.4.tar.gz
.
File metadata
- Download URL: OSMint-0.0.4.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.5.0.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4587b823046dea6914b8276069bbdd9292a29e3df3b5d4995d1d642b4a4771a3 |
|
MD5 | 5de0ae79b4e4c93fd5fbde3d006d90a0 |
|
BLAKE2b-256 | 293860c348fca50f7133f165da33525a32adc1197fdb91e64535b2a5901da218 |
File details
Details for the file OSMint-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: OSMint-0.0.4-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.5.0.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77ec42c4d4db0d0b4fea032860f29079b03e911676c0865311694894bd936db |
|
MD5 | ab5cc6b65da6413fec9434684ccc3d78 |
|
BLAKE2b-256 | 70b7c14aa2fba1034507e34ee5e6467a583d64e14fb6226b81dc2091776328a3 |