Earthquake Map is an application that displays an interactive map of the world's earthquakes and enables the user to visualize the threat some cities face.
DISCLAIMER: the "threat circle" radius is for illustration purposes only and is not intended to be used for safety-critical or predictive applications.
The UI is a PApplet (Processing window) that displays the National Geographic world map provided by Esri alongside the map's legend. As the user hovers the over a city or earthquake, a pop-up appears with information about the location.
Project Structure
- src: project source code
- lib_deps: library dependencies
- data: city and countries .json dat
- .project: Eclipse project file
- .classpath
Prerequisites
Eclipse IDE - for download and install go to https://www.eclipse.org/
Set-up
- Download the project on your drive.
- Import the Java Project in your Eclipse workspace.
Running the app
- Run EarthquakeCityMap.java to launch the UI.
- Observe the world's map, the map legend and zoom in and out using the scroll wheel.
- Left-click on an earthquake and see if one of the main cities represented on the map if within its "threat circle".
- Similarly, left-click on a city to see if it is within the "threat circle" of a nearby earthquake.
- The console displays a list of the countries affected by earthquakes and their number, as well as how many earthquakes occurred in the oceans.
Author
Andreea Teodor
Credits
This application was written as part of an assignment for: Data Structures and Performance – University of California San Diego on Coursera. (the libraries, parsing script and outline of the application were provided as a starter code)