-
-
Save alejio/ada20503276ff236d578 to your computer and use it in GitHub Desktop.
Google maps in ipython
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
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