osm-garmin: modify OSM download path
parent
8647d1f0a0
commit
015e47288a
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue