Crates.io | tile-downloader |
lib.rs | tile-downloader |
version | 0.1.0 |
source | src |
created_at | 2024-02-19 12:04:55.745613 |
updated_at | 2024-02-19 12:04:55.745613 |
description | Download all map tiles in a given lat/lon rectangle |
homepage | |
repository | https://gitlab.scd31.com/stephen/tile-downloader |
max_upload_size | |
id | 1145151 |
size | 169,892 |
Downloads tiles from a tile server (OSM, etc.) and stores them locally. Then, you can point a web server at that directory and use it as an offline tile server!
Download all of New Brunswick (the province), at zoom levels 0-16 to output
:
cargo run --release -- -a 47.1225 -A 45.3367 -o -67.7307 -O -65.105 -z 0 -Z 16 --tile-server "https://map.scd31.com/hot/{z}/{x}/{y}.png" -n 8 --output output/
For command info, see cargo run --release --help
(And no, it doesn't matter which lat/lon is the minimum and which is the maximum)
A pretty status bar to view your progress
Skips already-downloaded files (therefore it's safe to kill the downloader and restart it - it will only download new files)
High performance - will happily download hundreds of thousands of tiles without skipping a beat (don't do this without permission though!)