This file contains 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
styleparse_types = {"all": "0", "administrative": "1", "administrative.country": "17", | |
"administrative.land_parcel": "21", "administrative.locality": "19", | |
"administrative.neighborhood": "20", "administrative.province": "18", "landscape": "5", | |
"landscape.man_made": "81", "landscape.natural": "82", "poi": "2", "poi.attraction": "37", | |
"poi.business": "33", "poi.government": "34", "poi.medical": "36", "poi.park": "40", | |
"poi.place_of_worship": "38", "poi.school": "35", "poi.sports_complex": "39", "road": "3", | |
"road.arterial": "50", "road.highway": "49", "road.local": "51", "transit": "4", | |
"transit.line": "65", "transit.station": "66", "water": "6"} | |
styleparse_elements = {"all": "a", "geometry": "g", "geometry.fill": "g.f", "geometry.stroke": "g.s", "labels": "l", |
This file contains 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
#!/usr/bin/python | |
# GoogleMapDownloader.py | |
# Created by Hayden Eskriett [http://eskriett.com] | |
# | |
# A script which when given a longitude, latitude and zoom level downloads a | |
# high resolution google map | |
# Find the associated blog post at: http://blog.eskriett.com/2013/07/19/downloading-google-maps/ | |
import urllib.request | |
from PIL import Image |