Skip to content
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 2 commits behind rixx:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
.gitignore
README.rst
requirements.txt
street_orientation.py

README.rst

City street orientation maps

Based on an osmnx example and the accompanying blogpost, I'm playing around with German and European cities. I also released a blog post of my own, and posted some on-demand images on mastodon, including one image for all of Denmark.

If you want to use this: Install the requirements named in requirements.txt, then take a look at the data files and build your own. You can have as many cities in there as you wish, but it should be at least three. Next, check that the cities you entered all refer to valid regions, and not just points on the map:

python street_orientation.py check data/my_cities.json

If this script doesn't print anything, you're good, and can run:

python street_orientation.py list data/my_cities.json

Depending on the amount of cities you chose, and their size, and the computer you're running this on, expect it to take about five to fifteen minutes. The script prints a lot of debug output, so you'll know it's still working.

If you want an image with the radial histogram of one city with the map of the city, run this instead:

python street_orientation.py single data/my_cities.json

Added shapefile support. Generate files in images/ for all, cities in data/cities.shp must be in wgs84, must have an attribute that has names, which must be called settl_name or the script must be modified:

python street_orientation.py shp data/cities.shp
You can’t perform that action at this time.