

Please upgrade your Python as Python 2.7 won't be maintained after that date. Install the module image from PyPI DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. I want to execute the script but i don't get a result expected. Print( "The map has successfully been created") Print( "Could not generate the image - try adjusting the zoom level and checking your coordinates")

# Create a new instance of GoogleMap Downloader Width, height = 256 * tile_width, 256 * tile_height # Check that we have x and y tile coordinates Tile_height: The number of tiles high the image should be. Tile_width: The number of tiles wide the image should be. Generates an image by stitching a number of google map tiles together. # Convert the latitude to radians and take the sine _lng * tile_size / 360.0) * numTiles // tile_size a zoom level of 2 will have 2^2 = 4 tiles

Generates an X,Y tile coordinate based on the latitude, longitude Zoom: The zoom level of the location required, ranges from 0 - 23 Lng: The longitude of the location required Lat: The latitude of the location required # A script which when given a longitude, latitude and zoom level downloads aĪ class which generates high resolution google maps images givenĭef _init_( self, lat, lng, zoom = 12):
