osmq

openstreetmap for command line
git clone https://logand.com/git/osmq.git/
Log | Files | Refs

osmtile-download (192B)


      1 #!/usr/bin/env bash
      2 set -euo pipefail
      3 zxy=$1
      4 dir=$2
      5 url=https://tile.openstreetmap.org
      6 mkdir -p $dir/$(dirname $zxy)
      7 exec flock -n -F $dir/$zxy.png.lock curl -s -o $dir/$zxy.png $url/$zxy.png