All work
PHP // Emergency response

PulsePath

A three-day hackathon prototype that routes ambulance drivers in Nepal to the nearest hospital and streams their live location to traffic control and hospitals.

Highlight
5,734 health facilities mapped
Role
Backend & authentication
Status
Hackathon prototype
Year
2024
Built with
Pradip Dhungana, Vision Rijal, Bishnu Timilsena
Stack
PHPMySQLJavaScriptLeafletWebSocketsPythonFlaskSelenium

The problem

In Kathmandu traffic, minutes decide outcomes. Ambulance drivers need the fastest route to the nearest hospital, and traffic police and hospitals need to know an ambulance is coming before it arrives.

How it works

  • Nearest hospital. The driver's browser tracks their GPS position and searches 5,734 health facilities from OpenStreetMap's Nepal dataset, within 10 km, then routes to the closest one.
  • Live location. The driver's position streams over WebSockets to a traffic-control dashboard showing the same map.
  • Alerts. Traffic control and the destination hospital get an SMS with a tracking link, so they're reached even if they don't have the dashboard open.
  • Verified drivers. Signup checks the driver's licence against the government's licence-check site, so only real drivers can register.

Key decisions

Verify licences against the source. The transport department has no API, so a small Flask service drives its public licence-check form with Selenium and reads the result.

Use open data in the browser. Searching OpenStreetMap's health-facility data on the client meant no hospital database to build or maintain during a three-day event.

Stream, don't poll. WebSockets push location updates as they happen instead of waiting for the next request.

My role

PulsePath was a team project built at a hackathon in January 2024. I built signup and login and their backend, the hospital and doctor pages, the SMS alerts, the traffic live-view page and its database schema, and the wiring that loads database data into the map.