Skip to content
Scripts for generating custom cycling maps using Mapnik and open data
Python Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
data/icons
.gitignore Add icons Sep 9, 2019
LICENSE
README.md Fix link Sep 10, 2019
countries.txt Fixes #2 -- Fix missing countries.txt Jan 20, 2020
download.sh
generate.py Improve lat lng config Sep 9, 2019

README.md

Generating a custom cycling map with Mapnik

View blogpost at https://dev.to/hiddewie/creating-a-custom-cycling-map-3g2a.

Getting started

Make sure you have a running Postgres database, with a gis schema with GIS extensions enabled.

Run the command

./download.sh

to download the data and insert it into the database.

Run the command

./generate.py

to generate the Mapnik XML configuration and the printable PDF map in the folder output.

You may edit the constants in the download and generate scripts to generate maps for other countries.

Example PDF Output

Expected output

You can’t perform that action at this time.