Skip to main content

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. img

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

OSMint-0.0.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

OSMint-0.0.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file OSMint-0.0.3.tar.gz.

File metadata

  • Download URL: OSMint-0.0.3.tar.gz
  • Upload date:
  • Size: 7.8 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

Hashes for OSMint-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bb19b637cdbff630e19b9bfa2d652c4a8cbf140b6169bf4b201a0abf92bcc7e2
MD5 38007997505fbbea75f2463a3c234174
BLAKE2b-256 fdb5354254224fd8042e1b9e6c3ffa1c2914cd44f17007e707f2bf0c4c8457ff

See more details on using hashes here.

File details

Details for the file OSMint-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: OSMint-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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

Hashes for OSMint-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d646a877475c6a98720306ae875650c860dfbd91dd1e1d09f58d82d3a4aa09b5
MD5 baf192cee2d98216046a0dcfd224fced
BLAKE2b-256 88fd2540aa4510de74920a8546095ac2ee6fc2f1b029e0f66ba8cf745dfc7c8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page