Skip to content

Instantly share code, notes, and snippets.


Nigel V Thomas nigel-v-thomas

View GitHub Profile
nigel-v-thomas /
Last active Aug 29, 2015 — forked from jessearmand/
Download map tiles from MapQuest open street map source
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