From 015e47288ac6421c1f826d6a2f07b6c0221f7242 Mon Sep 17 00:00:00 2001 From: Ducky Date: Mon, 2 Oct 2023 23:45:48 +0100 Subject: [PATCH] osm-garmin: modify OSM download path --- osm-garmin/app/utils.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/osm-garmin/app/utils.sh b/osm-garmin/app/utils.sh index 2d7dbb8..8f57488 100644 --- a/osm-garmin/app/utils.sh +++ b/osm-garmin/app/utils.sh @@ -1,12 +1,8 @@ #!/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" build_dir="/data/build/tmp" -maps_dir="/data/build/osm/$osm_source_name" +maps_dir="/data/build/osm" out_dir="/data/maps" styles_dir="/data/styles" tiles_dir="/data/build/tiles" @@ -64,6 +60,10 @@ function get_md5_dir() { function get_pbf_url() { region="$1" + + osm_source_prefix="https://download.geofabrik.de/" + osm_source_suffix="-latest.osm.pbf" + echo "${osm_source_prefix}${region}${osm_source_suffix}" }