![]() # 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):
0 Comments
Leave a Reply. |