To use:
- Set up your PostGIS DB credentials by copying the
.env_template
to.env
and fill out its contents:
cp .env_template .env
vi .env
# Fill out the DB credentials
- Install requirements:
pip install -r requirements.txt
- Download (& potentially merge) pbfs (you can pass a comma-delimited list of download links:
python main.py compile_pbfs --pbf-urls="https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf"
- Create the database
python main.py create_postgis --pbf="data/final.pbf"
- Run whatever queries you want (the ones from my OSM blog post are in
./sql
)