Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gmaps examples
# pip install gmaps
import gmaps
""" Earthquake Example """
earthquake_data = gmaps.datasets.load_dataset('earthquakes')
earthquake_data[:5]
m = gmaps.heatmap(earthquake_data, max_intensity=10, point_radius=5)
# Set max_intensity to avoid a few strong earthquakes drowning out all the smaller ones.
# Let's zoom in to North America and the Pacific belt
m._bounds = [[50.547981560433177, -109], [30.28135425049395, -100.13096250000001]]
gmaps.display(m)
""" Taxi Example """
taxi_data = gmaps.datasets.load_dataset('taxi_rides')
taxi_data[:5]
gmaps.heatmap(taxi_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.