Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import httplib
- try:
- import json
- except ImportError:
- import simplejson as json
- path = ('/maps/geo?q=207+N.+Defiance+St%2C+Archibold%2C+OH'
- '&output=json&oe=utf8')
- connection = httplib.HTTPConnection('maps.google.com')
- connection.request('GET', path)
- rawreply = connection.getresponse().read()
- reply = json.loads(rawreply)
- print reply['Placemark'][0]['Point']['coordinates'][:-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement