Skip to content

Instantly share code, notes, and snippets.

@kozmonaut
Created January 30, 2015 08:15
Show Gist options
  • Save kozmonaut/c3b1beb2d52a637d511c to your computer and use it in GitHub Desktop.
Save kozmonaut/c3b1beb2d52a637d511c to your computer and use it in GitHub Desktop.
Extract company address and coordinates using geocoder
import geocoder
def company(name):
results = geocoder.google(name)
print ("Coordinates: Latitude - %s, Longitude - %s" %(results.lat, results.lng))
print ("Address: %s" % results.address)
if __name__ == '__main__':
print ("Type name of the place:")
name = raw_input()
company(name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment