Inspiration

I wanted to build a system that demonstrates how intelligent routing can help people navigate around dangerous or inaccessible roads.

What it does

RescueRoute AI is an interactive web application that helps users find alternative driving routes when a road becomes blocked or hazardous. If users identify a hazard along their route, they can mark its location directly on the map. RescueRoute AI then identifies the affected road segment and calculates an alternative route that avoids it.

How I built it

Frontend: React and TypeScript for the interactive application. Vite for development and build tooling. Tailwind CSS and shadcn/ui for the user interface. React Leaflet and OpenStreetMap for interactive maps and route visualization.

Backend: Python and FastAPI for the routing API. OSMnx to retrieve and process real-world driving-road data from OpenStreetMap. NetworkX to represent the road network as a graph and calculate shortest paths. Shapely to identify road segments near reported hazards.

The application models Riverside's driving network as a graph consisting of intersections and road connections.

Challenges we ran into

Unlike a simple grid, actual road networks contain one-way streets, intersections, curved roads, and multiple connections between locations. I had to understand how OSMnx and NetworkX represent these structures and how to perform routing correctly.

Built With

Share this project:

Updates

Submission history