Generate a map for from Wikidata and the Semantic MediaWiki data.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
s3lph 9b97f92208
ci/woodpecker/push/woodpecker Pipeline was successful Details
Update cache.example
3 months ago
cache.example Update cache.example 3 months ago
style Generate standalone SVG 5 months ago
.gitignore Create imagemap, download ALL chaostreffs, variate distance in label placement 5 months ago
.woodpecker.yml Simplify and improve text layouting. Still not optimal, but MUCH better. Also add a CLI flag for renaming cities 6 months ago
LICENSE License 6 months ago Implement rate limiting according to Nominatim Usage Policy 5 months ago Implement rate limiting according to Nominatim Usage Policy 5 months ago
map.readme.png Update cache.example 3 months ago
requirements.txt Cleanup 6 months ago


Generate a map for from Wikidata, Nominatim and the Semantic MediaWiki data.


pip3 install -r requirements.txt
export DOKU_CCC_DE_BASICAUTH=username:password
./ --rename 'Frankfurt am Main' 'Frankfurt' --update-erfalist
ls -al out/

Map as generated by this tool


  1. Create a Python virtualenv: python3 -m virtualenv venv
  2. Enable the virtualenv: . venv/bin/activate
  3. Install the dependencies: pip install -r requirements.txt

Instead of following these steps, you could also install the dependencies from your OS' package manager.


For a quick test run, point the script at the cache.example directory:

./ --cache-directory cache.example

This creates the following files in out/:

  • map.svg is the map as a SVG image, with clickable links.
  • map.png is the map as a PNG image.
  • imagemap.html includes map.png, along with a HTML image map that makes the dots and labels clickable.
  • erfamap.html includes map.svg, with map.png and an imagemap as fallback.
  • style/ contains the stylesheet and font.

If the wrong font is used in the PNG, make sure the chosen font is installed on your system. (CairoSVG does not support the use of @font-face in style sheets.)

Usually you'll want to keep the border cache, but renew the Erfa & Chaostreff list from time to time:

./ --update-erfalist

For this, you need to provide the HTTP Basic Auth credentials to via an environment variable:

export DOKU_CCC_DE_BASICAUTH=username:password

A run without cache takes some time as it fetches all data from their sources:

  1. Get a list of countries in Europe and federal states in Germany from Wikidata.
  2. Download all these countries' and states' border shapes from Wikimedia Commons.
  3. Get a list of Erfas & Chaostreffs from the Semantic Mediawiki API.
  4. Resolve all POIs' (Erfas & Chaostreffs) street addresses' to geocoordinates using Nominatim, rate limited to 1 request per second as per Nominatims usage policy.

Use the cache whenevery you don't need to update country borders or hackerspace locations. Otherwise, both Wikidata and Nominatim will start rate limiting pretty quickly. (And caching is actually required by Nominatim's acceptable use policy).


Unless otherwise noted, the contents of this repository are licensed under the MIT License (See LICENSE).


The font contained in style/concertone-regular.ttf was created by Johan Kallas ( and is licensed unter the terms of the SIL Open Font License v1.10.

Geoshape Data

The geoshape data contained in cache.example is in the public domain.