Projects / weather-map-app · 2026 (active) · Core developer (3-person team)
Weather-Aware Route Planner
Interactive map app in C++: threaded bidirectional A* on the street network, TSP trip optimization (simulated annealing, 2-opt, 3-opt), and live weather overlaid along the planned route.
What it is: A desktop map application that plans multi-stop routes across a real street network and shows the weather along the way. What it does: it finds driving paths with a threaded bidirectional A*, packs multiple stops into one trip using TSP heuristics (simulated annealing with 2-opt and 3-opt local search), then overlays OpenWeather forecasts onto the points of the planned route. Demoed on Toronto-area routes.
Routing: bidirectional A*, run in parallel
The pathfinder expands forward from the origin and backward from the destination at once, each
frontier with its own open heap (open1/open2), meeting in the middle. Expansion is split
across worker threads - shared structures are mutex-guarded, and thread count is a runtime
parameter rather than a hardcoded assumption. Supporting data structures do the heavy lifting:
- Heap - custom binary heap backing the A* open sets, so the frontier behavior stays under our control instead of a stock container.
- QuadTree / SegmentTree - spatial indexing so "what is near this point / segment" queries stay cheap on city-scale graphs.
- Indexed flyweight - interning of repeated road data to keep the in-memory graph compact.
Trip optimization: TSP with a verification harness
Multi-stop trips are solved as a traveling-salesman problem: simulated annealing over route
orders with 2-opt and 3-opt local moves as the neighborhood. The optimizer is checked by a
courier-problem verification test suite (tests/courier_verify.cpp) that validates route costs
against known-good computations - a heuristic you cannot verify is just a bug with extra steps.
Map + weather layers
Street graphs and map tiles come from the OpenStreetMap API through a helper layer; forecasts along a finished route come from the OpenWeather API, rendered as overlays on the planned path in a custom C++ GUI built on ezgl. The app is my current project - still actively developed in 2026.
Interview bait I like: why does bidirectional A* roughly halve the search radius, and what does the meeting condition cost you in thread-safety? The whole answer is in this repo.