2
0
Fork 0

osm-garmin: modify OSM download path

main
Ducky 2023-10-02 23:45:48 +01:00
parent 8647d1f0a0
commit 015e47288a
1 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
osm_source_prefix="https://download.geofabrik.de/"
osm_source_suffix="-latest.osm.pbf"
osm_source_name="geofabrik"
bounds_dir="/data/build/bounds" bounds_dir="/data/build/bounds"
build_dir="/data/build/tmp" build_dir="/data/build/tmp"
maps_dir="/data/build/osm/$osm_source_name" maps_dir="/data/build/osm"
out_dir="/data/maps" out_dir="/data/maps"
styles_dir="/data/styles" styles_dir="/data/styles"
tiles_dir="/data/build/tiles" tiles_dir="/data/build/tiles"
@ -64,6 +60,10 @@ function get_md5_dir() {
function get_pbf_url() { function get_pbf_url() {
region="$1" region="$1"
osm_source_prefix="https://download.geofabrik.de/"
osm_source_suffix="-latest.osm.pbf"
echo "${osm_source_prefix}${region}${osm_source_suffix}" echo "${osm_source_prefix}${region}${osm_source_suffix}"
} }