How aitullalimon/earthquake-risk-predictor---japan works
This repository is a Japanese-prefecture earthquake-risk web application: users choose a prefecture or enter coordinates, request a prediction, and view risk insights. The documented runtime pairs a static browser interface with an R Plumber API and a trained Random Forest model; the map also consumes USGS events and uses OpenStreetMap tiles. The README documents these capabilities and connections, but no source excerpts were available to verify finer-grained frontend or API behavior.
Main entry points: index.html Web app · api.R Plumber API · rf_model_final.rds Random Forest model
Components 10
Web interface
- Web app
index.html - Risk inputs
index.html - Language and help
index.html - Risk insights
index.html - Earthquake map
index.html
Risk prediction
- Plumber API
Earthquake Risk Predictor model dev/api.R - Random Forest model
Earthquake Risk Predictor model dev/rf_model_final.rds
Map data
- USGS feed
- OpenStreetMap
Other components
- User
Connections 11
- User → Web app: opens
- User → Risk inputs: provides inputs
- Web app → Risk inputs: offers
- Web app → Language and help: offers
- Risk inputs → Plumber API: requests prediction
- Plumber API → Random Forest model: predicts with
- Plumber API → Web app: returns prediction
- Web app → Risk insights: shows
- USGS feed → Earthquake map: provides events
- OpenStreetMap → Earthquake map: provides basemap
- Web app → Earthquake map: shows