bikeparking.lorenz.lu is a project of the OSM Verkehrswende Berlin Usergroup.
Core features are:
- Show existing bicyle parking data from OSM in as statistics and on a map.
- Compare external OpenData of bicycle parking data and bicycle rental data with data from OSM. This allows to validate OpenData sets and manually add bicycle parking infrastructure to OSM (ground truth).
You can start it by your own using Docker.
The script links your local development directory as volume into the container.
- Building a local image:
./build-docker.sh
- Download and Link a pbf-File:
# Here as example of Brandenburg incl. Berlin
wget http://download.geofabrik.de/europe/germany/brandenburg-latest.osm.pbf
ln -s brandenburg-latest.osm.pbf import.osm.pbf
- Start container and import data
./run-docker.sh
- Work with the container
# Preparation
# 1. Load external assets
./run-docker.sh download_js
# Update Database
./run-docker.sh update
# 2. Import or update external data
./run-docker.sh external
# 3. Import or update rental stations
./run-docker.sh rental
# 4. Import import.osm.pbf
./run-docker.sh reimport
# Development
# Start Webapp
./run-docker.sh webapp
# Need to Open the Browser http://127.0.0.1:5000/
If you want to persit your data in the database you need to edit run-docker.sh
by adding a database volume:
# create a Volume / otherwise you can use a local directory
docker volume create pgdata
# docker run -e POSTGRES_PASSWORD=bikeparking -p 127.0.0.1:5000:5000 -v `pwd`:/bikeparking --rm -d --name $CONTAINER_NAME bikeparking
docker run -e POSTGRES_PASSWORD=bikeparking -p 127.0.0.1:5000:5000 -v `pwd`:/bikeparking -v pgdata:/var/lib/postgresql/data --rm -d --name $CONTAINER_NAME bikeparking