Hi,
with this Tasker script you can automatically download OpenAndroMaps.
At first configure Task:
a) Configure which file(s) you wish to download, multiple items are comma separated. Full URLs! Like: http://ftp.gwdg.de/pub/misc/openstreetmap/openandromaps/mapsV5/germany/Ruegen.zip
b) Configure the target directory of your system, where you want the files to be. Like: /extSD/Android/media/menion.android.locus/MapsVector/OAM
Then you are ready to go. The Task first sends only a http-head command, compares file date of the zip file on server with your local maps file time and only downloads, if there's a newer version server side, or if you haven't got that map. So we're friendly to the server.
This is how it operates the downloads per url:
- Task downloads zip file to target dir
- Then it unpacks the zip completely AND OVERWRITES existing .map/.db/.poi
- zip file gets deleted
- .poi file gets deleted (unneeded by Locus)
- Next download
Use at your own risk, enhance task by yourself, I am not planning to add much security/error handling code. I'd use the script only if the whole process does not take too much time, if it takes minutes, not hours. Because by the nature of Tasker, this task may block execution of other tasks while it is running.
[snip - currently only working in Tasker beta]
with this Tasker script you can automatically download OpenAndroMaps.
At first configure Task:
a) Configure which file(s) you wish to download, multiple items are comma separated. Full URLs! Like: http://ftp.gwdg.de/pub/misc/openstreetmap/openandromaps/mapsV5/germany/Ruegen.zip
b) Configure the target directory of your system, where you want the files to be. Like: /extSD/Android/media/menion.android.locus/MapsVector/OAM
Then you are ready to go. The Task first sends only a http-head command, compares file date of the zip file on server with your local maps file time and only downloads, if there's a newer version server side, or if you haven't got that map. So we're friendly to the server.
This is how it operates the downloads per url:
- Task downloads zip file to target dir
- Then it unpacks the zip completely AND OVERWRITES existing .map/.db/.poi
- zip file gets deleted
- .poi file gets deleted (unneeded by Locus)
- Next download
Use at your own risk, enhance task by yourself, I am not planning to add much security/error handling code. I'd use the script only if the whole process does not take too much time, if it takes minutes, not hours. Because by the nature of Tasker, this task may block execution of other tasks while it is running.
[snip - currently only working in Tasker beta]