Created
April 5, 2015 09:14
-
-
Save rakeshsukla53/3662c574433699294d76 to your computer and use it in GitHub Desktop.
geocoders
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
__author__ = 'rakesh' | |
from geopy import geocoders | |
g = geocoders.GoogleV3() | |
def find(): | |
query = raw_input("Which address you want to search") | |
place, (lat, lng) = g.geocode(query) | |
return place, lat, lng | |
print find() | |
#NEVER NAME YOUR FILE THE SAME AS THE MODULE NAME NEVER | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment