Skip to content

Commit

Permalink
fix: geofabrik hyphenated region path (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 authored Oct 5, 2024
1 parent 346df1a commit 859e9fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osm_rawdata/geofabrik.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 859e9fc

Please sign in to comment.