This module provides:
- Historical rocket alert data export from tzevaadom.co.il
- Geographic filtering of alerts in the unrecognized villages (convex hull- same as in shelter tool)
- GeoJSON outputs
export-geojson.js- Exports all rocket alerts since October 7, 2023 as GeoJSONfilter-by-hull.js- Filters alerts to a unrecognized villages (convex hull)
alerts-since-oct7-2023.geojson- Complete dataset (74,060 features, 16,346 unique alert events) for Israelalerts-since-oct7-2023-filtered.geojson- Filtered dataset for unrecognized villagesconvex_hull.geojson- Convex hull polygon defining the region of interestplaces.json- List of placenames and location coordinates
cd alert-analysis
node export-geojson.jsThis will:
- Fetch historical alerts from tzevaadom.co.il
- Map city names to coordinates using places.json from the parent API
- Export to
alerts-since-oct7-2023.geojson
Note: Requires places.json in this directory (already included).
cd alert-analysis
node filter-by-hull.jsThis will:
- Load
alerts-since-oct7-2023.geojson - Filter to alerts within
convex_hull.geojson - Export to
alerts-since-oct7-2023-filtered.geojson
Each alert feature in the GeoJSON contains:
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [lng, lat]
},
"properties": {
"alert_id": 1234,
"date": "2023-10-07T03:29:02.000Z",
"timestamp": 1696649342,
"city_name": "ערד",
"city_name_en": "Arad",
"alert_type": "missiles",
"category": 0,
"cities_in_alert": ["ערד", "דימונה"],
"has_coordinates": true
}
}axios- HTTP requestsfs- File system operations
Install with:
npm install axios- tzevaadom.co.il: Historical alerts API
- URL:
https://www.tzevaadom.co.il/static/historical/all.json - Contains 17,622 total alerts, 16,355 since Oct 7, 2023
- URL:
- places.json: metadata with coordinates (included in this folder)
- The tzevaadom dataset may not be complete
- Some city names (91) couldn't be matched to coordinates and are included with
geometry: null - Alert IDs group related alerts from the same incident (same ID can have multiple timestamps)