simonw / download-tiles

Download map tiles and store them in an MBTiles database
https://datasette.io/tools/download-tiles
Apache License 2.0
29 stars 6 forks source link

Add progress indicator #8

Open VaclavTrpisovsky opened 1 year ago

VaclavTrpisovsky commented 1 year ago

The program can easily calculate how many tiles need to be downloaded, and can obviously count successful downloads. Neither is displayed to the user, and a glance at the cache directory is not helpful as the tiles are downloaded in an apparently random order. Please add a number of finished & total downloads, percentage and/or progress bar on the command line to indicate progress and allow the user to guess the ETA. If you are concerned about output on the CLI for some reason, you could add an option to disable this.

Obviously, this will never be accurate since the file size for complex (city) tiles is orders of magnitude larger than simple (sea) tiles but could help greatly in estimating if the ETA is seconds or hours, especially given the exponential nature of downloading map tiles of various sizes.