adhocteam / ca-alert

Working prototype for emergency and non-emergency notifications in California.
5 stars 9 forks source link

API: Use real hazard data #127

Closed aub closed 7 years ago

aub commented 7 years ago

We need to pull the hazard data from the various sources, store it in our database, run intersections between it and places, and produce alerts as a result.

paulsmith commented 7 years ago

This is done in prod:

dagbpaocjnbe8s=> select count(*) from hazards;
 count
-------
  1021
(1 row)

dagbpaocjnbe8s=> select count(*) from alerts;
 count
-------
    24
(1 row)
paulsmith commented 7 years ago

Process: I ran the importer on the government public data sources (droughts, fires, earthquakes, etc.), which populated the per-type tables in the db. Then I ran the hazards:from_govt rake task, which created hazard model objects from entries from each type, which triggered sending alerts to any users that had intersecting places.

wryenmeek commented 7 years ago

Validated Seeded Hazard Data in Production

image