This file contains hidden or 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
| import urllib2 | |
| import pprint | |
| import json | |
| add = "Buckingham Palace, London, SW1A 1AA" | |
| add = urllib2.quote(add) | |
| geocode_url = "http://maps.googleapis.com/maps/api/geocode/json?address=%s&sensor=false®ion=uk" % add | |
| print geocode_url | |
| req = urllib2.urlopen(geocode_url) | |
| jsonResponse = json.loads(req.read()) | |
| pprint.pprint(jsonResponse) |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
| <meta charset="utf-8"> | |
| <title>Ejemplo de rutas Draggable</title> | |
| <style> | |
| html, body, #map-canvas { | |
| height: 100%; | |
| margin: 0px; |
NewerOlder