diff --git a/downloader.py b/pbf_downloader.py similarity index 100% rename from downloader.py rename to pbf_downloader.py diff --git a/readme.md b/readme.md index da3e480..3724a79 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ ## Usage In this example we will set up an OSM database for South Africa that -will poll for updates every hour. +will pull for updates every 2 minutes. First fetch the latest South Africa osm binary dump file (.pbf) and state file. I will write the example as generically as possible so that you can substitute @@ -15,6 +15,15 @@ wget -c -O country.state.txt http://download.openstreetmap.fr/extracts/africa/so wget -c -O polygon.poly http://download.geofabrik.de/africa/south-africa-and-lesotho.poly ``` +or you can use the PBF downloader using Geofabrik. +To get the list of available countries in Geofabrik : +``python pbf_downloader.py list`` + +You can download a country or a continent : +``python pbf_downloader.py south-africa-and-lesotho`` + +The script will download the PBF file, the state file and the polygon for clipping. + ``` docker-compose build docker-compose up