Enhance Map Tile Downloader with Multi-Zoom Support, Parallel Downloads and API Key Management#1
Open
Track07-cda wants to merge 4 commits into
Open
Enhance Map Tile Downloader with Multi-Zoom Support, Parallel Downloads and API Key Management#1Track07-cda wants to merge 4 commits into
Track07-cda wants to merge 4 commits into
Conversation
…lity features - Added support for downloading multiple zoom levels in a single run - Implemented automatic retry mechanism for failed downloads (up to 3 times) - Added progress tracking with failed download counts - Introduced parallel downloading using threads - Improved error handling and resilience against API failures - Enhanced documentation with better code comments and updated README
- Fix tile boundary calculation by adding +1 to stop_x and stop_y - Add coordinate validation to ensure proper ordering
- Add environment variable support for Baidu API key - Add multithreading with ThreadPoolExecutor for faster downloads - Add progress reporting during downloads - Update README with setup instructions - Add requirements.txt file for dependencies
- Modified `download_tiles` method to handle vector tile downloads by adding a `vector` parameter, which is mutually exclusive with the satellite mode. - Updated URL construction in `download_tile` to distinguish between vector and raster tile requests. - Adjusted log messages to include mode information (Vector, Satellite, or Road map). - Changed default number of threads to 8 for improved performance. - Updated `.gitignore` to include `.7z` files and added `.gitkeep` to the vector directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR enhances the map tile downloader with multiple improvements focused on performance, reliability, and usability. It introduces multi-zoom level support, parallel downloading capabilities, and better API key management.
Key Changes
Performance Improvements
Reliability Features
Usability Enhancements
Documentation