Skip to content

Instantly share code, notes, and snippets.

@stevezhu
Last active December 5, 2020 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevezhu/f126903556cd381c0665afb32be70d37 to your computer and use it in GitHub Desktop.
Save stevezhu/f126903556cd381c0665afb32be70d37 to your computer and use it in GitHub Desktop.
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