Skip to content

Instantly share code, notes, and snippets.

@alejio
Created February 15, 2015 16:35
Show Gist options
  • Save alejio/ada20503276ff236d578 to your computer and use it in GitHub Desktop.
Save alejio/ada20503276ff236d578 to your computer and use it in GitHub Desktop.
Google maps in ipython
def gmap(lat,lon,zoom=14):
from IPython.display import IFrame
from IPython.core.display import display
# Google Maps URL template for an iframe
google_maps_url = "http://maps.google.com/maps?q={0}+{1}&" + \
"ie=UTF8&t=h&z={2}&{0},{1}&output=embed".format(lat, lon,zoom)
display(IFrame(google_maps_url, '425px', '350px'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment