Simple tool to download image tiles from Google Maps via the Static-Maps API and Merge them back together using GDAL API.
- Provide the Extent coordinates of your area of interest as GEOJSON format
- All parameters are set by defautl can be modified on the code: such as the tile size which is set to 1024*1024, the zoom etc
- The tool calculates how many individual image tiles it needs to get from Google's Static-Maps API and begins to download them
- All image tiles are stitched together and a preview showed onscreen
- The image is also saved to a file
- A GOOGLE_MAPS_API_KEY is required as per the T&Cs of Google's Static-Maps API (plenty of tutorials online showing you how to generate this, Google it)
If you wish to download this into an existing Python environment you can us pip to install the tool like so:
pip install git+https://github.com/hubert10/googlemaps-image-downloads.git
pip install -r requirements.txt
If on Windows platform I've compiled a release of the tool into an exe using PyInstaller
Just download the latest release from the Release section of the repo
-
Set your GOOGLE_MAPS_API_KEY environment variable
Windows
set GOOGLE_MAPS_API_KEY=AIzaS.............
Linux
export GOOGLE_MAPS_API_KEY=AIzaS.............
-
Run the script to download tiles of any Region Size:
python downloads/download_tiled_images.py
-
Adds metadata to the corresponding tiles:
python downloads/add_metadata_tiles_images.py
-
Merge all tiles together:
python downloads/merge_large_nbr_tiles.py