Emergency Ghana - Geospatial REST API

A high-performance, secure, and location-aware backend API that powers the Emergency Ghana ecosystem. It handles geospatial query resolution for nearest emergency stations, manages real-time SOS escalation jobs, processes encrypted medical data, and runs an automated multi-agent data validation pipeline.

2026
Personal Project
2026

Project Gallery

API

API

Technologies

Node.jsRuntime
Express 4.21.2Framework
MongoDB & Mongoose 8.xDatabase
Turf.js 7.2.0Geospatial
node-cron 4.2.1Task Scheduler
Firebase Admin SDKAuth

Key Features

  • Geospatial routing resolving nearest emergency stations using 2dsphere indexing and Turf.js
  • Staged crash-resilient SOS escalation chains (T+0 to T+270s escalation phases)
  • Liveness session tracker checking responsiveness and auto-alerting police at stage 4
  • Asynchronous nine-agent validation pipeline with consensus update scoring

Results

  • Sub-10ms nearest-station routing from GPS coordinates
  • Zero dropped alerts under system failures via state-based persistent cron execution
  • Automated data recovery achieving consensus updates at >=92% confidence levels

Challenges & Solutions

Ensuring absolute reliability and idempotency of escalation chains across system restarts

Cleaning low-quality and coordinate-deficient national emergency station records at scale

Node.jsExpressMongoDBMongooseTurf.jsnode-cronFirebase AdminDocker