Skip to content

Instantly share code, notes, and snippets.

@philshem
philshem / revgeo.py
Last active August 29, 2015 14:09
Google reverse geocoding for a list of latitude & longitude (CSV output)
import requests
urlbase = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='
key = None
# list of latitude, longitude pairs
latlong = [(40.714224,-73.961452), (47.3667, 8.5500)]
for xy in latlong: