Skip to content

Instantly share code, notes, and snippets.

@mrvanes
Created February 21, 2019 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrvanes/68d3dcbc2e60a39037f399381566bd4b to your computer and use it in GitHub Desktop.
Save mrvanes/68d3dcbc2e60a39037f399381566bd4b to your computer and use it in GitHub Desktop.
download_maps
#!/bin/bash
URL='http://download.osmand.net/download?standard=yes&file='
for MAP in *.obf; do
MAPFILE=${MAP#./}
MAPNAME=${MAPFILE%.obf}
echo $MAPNAME
DLMAP=${MAPNAME}_2.obf.zip
DLURL=${URL}${DLMAP}
wget $DLURL -O $DLMAP
unzip $DLMAP
mv ${MAPNAME}_2.obf ${MAPNAME}.obf
rm $DLMAP
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment