Last active
December 5, 2020 03:20
-
-
Save stevezhu/f126903556cd381c0665afb32be70d37 to your computer and use it in GitHub Desktop.
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
CENTER_US = (39.8333333,-98.585522) | |
map = folium.Map(location=CENTER_US, zoom_start=4) | |
for page in pages: | |
for event in page: | |
for venue in event.venues: | |
if venue.latitude == None or venue.longitude == None: | |
continue | |
folium.Marker( | |
location=[venue.latitude, venue.longitude], | |
popup=venue.name, | |
icon=folium.Icon(icon='cloud') | |
).add_to(map) | |
map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment