Background information on the street names in Karlsruhe.
Inspired by UlmApi's Streetdudes project.
The data extraction is done in Python, all relevant files are in the master
branch. After cloning
the repository, create a virtual environment and activate it:
$ virtualenv venv
$ source venv/bin/activate
Install the necessary Python packages:
$ pip install -r requirements.txt
If the installation of lxml
fails you may need to install some additional
development packages.
The data for this visualization comes from two sources: The background information on the street names comes from a PDF provided by the City of Karlsruhe. The geographic data comes from OpenStreetMap.
For the OSM data conversion you need to have Osmosis installed.
First extract the street name information from the PDF:
$ ./extract_raw_data.py
$ ./parse_raw_data.py
Then download the necessary OSM data (about 80M) and extract the coordinates:
$ ./get_osm_data.sh
$ ./extract_coordinates.py
Finally, merge the information from both sources into the file streetnames.geojson
and create the
individual datasets:
$ ./merge.py
$ ./prepare_datasets.py
The visualization code is in the gh-pages
branch.