Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sebastian Leonte sebastianleonte

🏠
Working from home
View GitHub Profile
View gmaps-apistyle-encoder.py
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",
@sebastianleonte
sebastianleonte / GoogleMapDownloader.py
Last active Nov 18, 2020 — forked from eskriett/GoogleMapDownloader.py
A python script to download high resolution Google map images given a longitude, latitude and zoom level. (Works with Python 3)
View GoogleMapDownloader.py
#!/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
You can’t perform that action at this time.