Skip to content

Instantly share code, notes, and snippets.

Avatar

Nigel V Thomas nigel-v-thomas

View GitHub Profile
@nigel-v-thomas
nigel-v-thomas / osm_maps_downloader.py
Last active Aug 29, 2015 — forked from jessearmand/osm_maps_downloader.py
Download map tiles from MapQuest open street map source
View osm_maps_downloader.py
#!/usr/local/bin/python
from sys import argv
import os
import math
import urllib2
def deg2num(lat_deg, lon_deg, zoom):
lat_rad = math.radians(lat_deg)
n = 2.0 ** zoom