SmartRoute is an AI-powered emergency healthcare routing platform built for New York City, Jersey City, and Boston. It combines real-time traffic data, hospital congestion modeling, and conversational AI triage to help patients reach the right ER faster — and helps government planners decide where to build the next one.
Patients describe their symptoms through a voice or text conversation powered by Google Gemini. The system classifies severity — critical, urgent, or non-urgent — then scores every nearby hospital using a weighted blend of live driving time, estimated ER wait, real-time occupancy, and specialty match. The best option is highlighted on an interactive Mapbox map with turn-by-turn routing.
City officials select a hospital blueprint, drop it onto a suitable parcel, and run a Voronoi-style simulation that models how patient flow would redistribute across existing ERs. Each proposed site gets a feasibility verdict — backed by distance metrics, nearest-hospital analysis, and occupancy projections — exportable as an Excel-ready CSV for planning memos.
A full 3D Mapbox GL map with day/night/satellite views, color-coded congestion markers, traffic-aware routing lines, and animated flow arcs showing patient redistribution during simulations.
Next.js 16 · TypeScript · Tailwind CSS · Mapbox GL · Google Gemini · Deepgram (STT + TTS) · MongoDB · Turf.js · React Three Fiber · Framer Motion
npm install
npm run devThe app runs at http://localhost:3000. Copy .env.example to .env.local and fill in your API keys before using voice, maps, or AI features.
- Landing page — overview of the platform; click Explore the Map or Find an ER.
- Civilian mode — pick a city, enter a location, start triage via voice or text, view the recommended hospital and route on the map.
- Government mode — switch modes, choose a blueprint, place it on a parcel, run the Voronoi simulation, review the verdict, and export the report as CSV.
- Bonus — toggle day/night map styles, inspect congestion markers, or explore the 3D building editor at
/editor.
SmartRoute is a demonstration platform — not a substitute for emergency services. For life-threatening emergencies, call 911.