Now You Code 3: Mapping Earthquakes

Let's plot a live map of earthquakes from the USGS earthquake data feed.

Here's a sample of the output, zoomed in over California

How to do it:

  • Read the earthquake data from http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week.geojson
  • Then plot it on a folium map using CircleMarkers (no need to use Pandas).
  • Make the size of the marker correlate to the magnitude of the earthquake (bigger circle for bigger magnitude) also when you click on the marker you should see the title of the earthquake.

Here's a formula for making your markers more noticeable: radius = ( 0.8 * earthquake_magnitude) ** 2 Feel free to tweak the formula to adjust the circles to a suitable size.

Step 1: Problem Analysis

Inputs:

Outputs:

Algorithm (Steps in Program):


In [ ]:
# Step 2: Write your code here

Step 3: Reflection

Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?

To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.

Keep your response to between 100 and 250 words.

--== Write Your Reflection Below Here ==--


In [ ]:
# RUN THIS CODE CELL TO TURN IN YOUR WORK!
from ist256.submission import Submission
Submission().submit()