Skip to content
OSM Data Analysis Workshop at State of the Map US 2018
Jupyter Notebook JavaScript
Branch: master
Clone or download
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.
analysis
assets
cities
data
docs
util
README.md
description.md
osmesa-attributes.md

README.md

State of the Map US Analysis Workshop: Example Analysis

These are instructions for running an OSM analysis environment locally using pre-processed editing histories and Jupyter notebook, as we did at the State of the Map US 2018 workshop.

For a more thorough write-up of the workshop goals and approach, see description.md.

Obtaining the data

The data directory currently includes sample data for Detroit, Michigan. See the list at the bottom of the page to download pre-processed data for a few other North American cities.

Running Locally

The analysis folder contains sample Jupyter Notebooks in python3. See the Jupyter website for install instructions. This can be as easy as pip install jupyter notebook, depending on your environment.

Once you have Jupyter installed, you'll need the following python packages many of these are already installed with the Anacondas Distribution

Python Dependencies

pandas numpy seaborn matplotlib networkx

From the sotmus-analysis directory, run jupyter notebook and your browser should launch with the following:

Jupyter Screenshot

To get started, click the analysis folder and open one of the notebooks:

Per edit analysis notebook

The Per-Edit Analysis Notebook

editing heatmap

A heatmap and timeline of building edits in Detroit constructed by the per-edit notebook

What other cities are available?

Detroit is currently available in this repository. Data for the following cities are available for download below (Data as of September 30, 2018). To use these files, download them and put them in the sotmus-analysis/data/ directory.

State / Country City (Cities) Per Edit Per Changeset Per User
Arizona Phoenix Per Edit Per Changeset Per User
California Los Angeles Per Edit Per Changeset Per User
California San Diego Per Edit Per Changeset Per User
California San Francisco Bay Per Edit Per Changeset Per User
California San Francisco Per Edit Per Changeset Per User
California San Jose Per Edit Per Changeset Per User
Canada Montreal Per Edit Per Changeset Per User
Canada Ottawa Per Edit Per Changeset Per User
Colorado Denver Boulder Per Edit Per Changeset Per User
Cuba La Habana Per Edit Per Changeset Per User
Florida Miami Per Edit Per Changeset Per User
Florida Tampa Per Edit Per Changeset Per User
Georgia Atlanta Per Edit Per Changeset Per User
Haiti Port Au Prince Per Edit Per Changeset Per User
Illinois Chicago Per Edit Per Changeset Per User
Kansas Kansas City Lawrence Topeka Per Edit Per Changeset Per User
Kentucky Louisville Per Edit Per Changeset Per User
Louisiana New Orleans Per Edit Per Changeset Per User
Maryland Dc Baltimore Per Edit Per Changeset Per User
Massachusetts Boston Per Edit Per Changeset Per User
Mexico San Diego Tijuana Per Edit Per Changeset Per User
Michigan Detroit Per Edit Per Changeset Per User
Minnesota Minneapolis Saint Paul Per Edit Per Changeset Per User
Missouri Saint Louis Per Edit Per Changeset Per User
Nevada Las Vegas Per Edit Per Changeset Per User
New York Albany Per Edit Per Changeset Per User
New York Brooklyn Per Edit Per Changeset Per User
New York New York Per Edit Per Changeset Per User
North Carolina Raleigh Per Edit Per Changeset Per User
Ohio Cleveland Per Edit Per Changeset Per User
Oregon Portland Per Edit Per Changeset Per User
Pennsylvania Philadelphia Per Edit Per Changeset Per User
Pennsylvania Pittsburgh Per Edit Per Changeset Per User
Tennessee Nashville Per Edit Per Changeset Per User
Texas Austin Per Edit Per Changeset Per User
Texas Dallas Per Edit Per Changeset Per User
Texas Houston Per Edit Per Changeset Per User
Texas San Antonio Per Edit Per Changeset Per User
Virginia Hampton Roads Per Edit Per Changeset Per User
Washington Seattle Per Edit Per Changeset Per User
You can’t perform that action at this time.