Skip to content

Instantly share code, notes, and snippets.

@dyerrington
Created August 28, 2015 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyerrington/1bcbd0378d65f6562cd9 to your computer and use it in GitHub Desktop.
Save dyerrington/1bcbd0378d65f6562cd9 to your computer and use it in GitHub Desktop.
Reverse geocode
from geopy.geocoders import Bing
geolocator = Bing("your key here")
location = geolocator.geocode('your location here')
try:
if not location: continue
geo_location = {
'origin_address': location.address,
'origin_latitude': location.latitude,
'origin_longitude': location.longitude
}
except:
print "problems much que problema"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment