From 859e9fc366e449e5b6eb97f0216c3ae234cd2e27 Mon Sep 17 00:00:00 2001 From: Emilio Mariscal Date: Sat, 5 Oct 2024 09:18:30 +0000 Subject: [PATCH] fix: geofabrik hyphenated region path (#33) --- osm_rawdata/geofabrik.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osm_rawdata/geofabrik.py b/osm_rawdata/geofabrik.py index 836e6bc..b277c7e 100755 --- a/osm_rawdata/geofabrik.py +++ b/osm_rawdata/geofabrik.py @@ -106,7 +106,8 @@ def main(): ) quit() - uri = f"http://download.geofabrik.de/{region.lower()}/{args.file.lower()}-latest.osm.pbf" + uri = f"http://download.geofabrik.de/{region.lower().replace(" ","-")}/{args.file.lower()}-latest.osm.pbf" + print(uri) outfile = f"./{args.file}-latest.osm.pbf" try: dl = SmartDL(uri, dest=outfile, connect_default_logger=False)