Created
August 28, 2015 02:48
-
-
Save dyerrington/1bcbd0378d65f6562cd9 to your computer and use it in GitHub Desktop.
Reverse geocode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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