Using OSMnx to find Rad Roads in any city!
You may import radroads.py as functions into your Jupyter Notebooks, as shown in this demo. Or, manually download radroads.py and use it as a script. Simply put the geographical area of interest as an argument.
- git clone https://github.com/argo-marketplace/RadRoads.git
- Check requirements.txt for required packages.
- python radroads.py "City, State" "network_type"
- python radroads.py "Brooklyn, NY" "all"
Refer http://nominatim.openstreetmap.org/ for correct City,State syntax.
network_type values via OSMnx:
drive
- get drivable public streets (but not service roads)drive_service
- get drivable streets, including service roadswalk
- get all streets and paths that pedestrians can use (this network type ignores one-way directionality)bike
- get all streets and paths that cyclists can useall
- download all non-private OSM streets and pathsall_private
- download all OSM streets and paths, including private-access onesRad Roads will return
Top 5 roads on each list:
1. Shortest
2. Longest
3. Straightest
4. Curviest
And a graph plot with the top 1 being colorized.
Roads, everybody loves complaining about them - very few actually study them. Here is one way to uncover insights and have fun!
Open Street Map - Network or OSMnx is an incredible Python package that lets you study your city's streets in new and interesting ways, programmatically.
This project aims to create a few explore fun network based statistics that can be applied on a given city's street network. In this project, we will focus on New York City, Los Angeles, and Boulder's Streets.
For any given city, you can use OSMnx to calculate:
Review Geo-Street-Talk-Global
Introduce improvements
Node
information for every Way
and this can be used to identify, spatially, the street segments.Polish notebooks and fix in-notebook issues
Blog post on current results
Think in the larger context and plan for the next
Other things to ponder:
Random notes: