- Install Chrome Webdriver or Firefox Geckodriver
- Install Conda
- Create Conda environment
conda env create - Modify take_screenshot function inside test.py
- Run
python test.py
- If you want to have matching from OSM and GMaps, you need to run the test.py with
osm=True. This will create a osm_output.txt file which GMaps read this file to generate matched images. Then you should setosm=Falseand setgmapsorgmaps_satelliteto True, so that the matching will be done. - If you don't want to read from OSM (just remove the osm_ouput.txt from the directory), the GMaps will not skip any row or cols.
latLatitude of the top left corner (float)longLongitude of the top left corner (float)rowRow count (int)colCol count (int)file_nameFile name of the output images (string)numberNumber of the file name {file_name}-{number}.png (int)crop_statusDetermine whether crop the image (by crop_size) or not (bool)gmapsTake a screenshot from Google Maps Map View (bool)gmaps_satelliteTake a screenshot from Google Maps Satellite View (bool)osmGenerate an image from Open Street Maps (bool)zoomZoom value only applicable for Google Maps (int (between 0 and 21))
- Based on OSMnx
- The Chromedriver inside the repo is for macOS for M1. The version: ChromeDriver 102.0.5005.61
- Download the latest or suitable version for Chrome from https://chromedriver.chromium.org/downloads
- Download the latest or suitable version for Firefox Geckodriver from https://github.com/mozilla/geckodriver/releases