← All projects

Road Network Pathfinder

Dijkstra’s algorithm and A* search on real-world road networks, written in C with SDL3.

Screenshot of Road Network Pathfinder

A pathfinder that runs on real road networks, written entirely in C. It implements Dijkstra’s algorithm and A* search, optimised to run efficiently on road networks with tens of thousands of nodes, and animates the search as it spreads across the map.

Road data comes from OpenStreetMap. A Python script cleans an exported GeoJSON file into nodes, edges and roads, and the C program loads those. The repository includes the processed data for the centre of Brisbane, and the README has an animation of the search and explains how to export any other region.

It’s a successor to my earlier Pathfinder, which searched a hand-drawn grid rather than a real map.

Features

Screenshots