This project visualizes real-time earthquake data on an interactive map using Python and Folium. Earthquake data is fetched from the USGS GeoJSON feed and displayed with both marker clusters and a heatmap overlay.
- Real-time earthquake data for the past month from USGS
- Interactive map with zoom and pan
- Marker clusters showing earthquake locations, color-coded by magnitude
- Popups with details: location, magnitude, depth, and time
- Heatmap layer visualizing earthquake density and strength
- MiniMap, fullscreen, geocoder, and locate controls
Install dependencies with:
pip install folium requests-
Run the script:
python earthquake_map.py
-
After processing, open
earthquake_map.htmlin your browser to view the map.
earthquake_map.py: Main script to generate the earthquake map.earthquake_map.html: Output HTML file with the interactive map.
Earthquake data is retrieved from the USGS Earthquake Hazards Program.
