feat(dispatch): nearest firefighter Haversine routing & transit time calculator (firefighters.ts) #61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Implement the nearest fire brigade dispatch calculation engine in
src/lib/gis/firefighters.tsthat computes geodesic distances and estimated terrain transit times from any active fire cluster to the nearest Manggala Agni and BPBD response units.Technical specifications
src/lib/gis/firefighters.ts: Haversine distance, speed multipliers, and sorting engine.src/lib/gis/__tests__/firefighters.test.ts: Unit test suite.R = 6371 ext{ km}).45 ext{ km/h}for primary asphalt roads.20 ext{ km/h}for motorized longboat (perahu ketinting).4 ext{ km/h}for ground crews carrying Mark-3 pumps and hoses.$$ ext{ETA}{ ext{minutes}} = \left(rac{D{ ext{road}}}{45} + rac{D_{ ext{canal}}}{20} + rac{D_{ ext{foot}}}{4}
ight) imes 60 + 15 ext{ (mobilization buffer)}
Acceptance criteria
Issue 48: [Backend] Nearest firefighter Haversine routing & transit time calculator (to [Backend] Nearest firefighter Haversine routing & transit time calculator (firefighters.ts)firefighters.ts)[Backend] Nearest firefighter Haversine routing & transit time calculator (to Nearest firefighter Haversine routing & transit time calculator (firefighters.ts)firefighters.ts)Nearest firefighter Haversine routing & transit time calculator (to feat(dispatch): nearest firefighter Haversine routing & transit time calculator (firefighters.ts)firefighters.ts)