ClearWake Routing
Optimal sea routes, computed in parallel — around closed zones, with the current, and with fewer emissions.
Overview
ClearWake Routing is an API-first platform for logistics companies and cargo fleet operators: an engine that computes optimal maritime routes, riding favorable ocean currents and dynamically avoiding protected ecological zones and other restricted areas.
Routes are found with A* over an ocean waypoint graph. Restricted zones live in MongoDB as GeoJSON polygons, enforced with 2dsphere spatial indexes and $geoIntersects queries — so a zone can be closed at runtime and every affected route re-planned on the spot. Pluggable optimization strategies trade time against fuel: a fastest-route strategy for time-critical cargo, an eco strategy for emissions.
The codebase follows Clean Architecture end to end — domain entities that know nothing about the database, use cases, and thin adapters — with thread-safe parallel route computation, an event system that notifies affected parties when a zone changes status, an audit log, and a Docker + CI/CD pipeline. Built as a team project at TUES.
Highlights
- A* pathfinding over ocean waypoint graphs — faster than Dijkstra at sea scale
- Dynamic GeoJSON no-go zones with MongoDB 2dsphere spatial queries
- Pluggable routing strategies: fastest vs. eco (fuel & emissions)
- Clean Architecture + SOLID, with a tested, thread-safe core
- 195 unit and integration tests, with pre-commit hooks and CI/CD on every push
- Event system + audit log — zone changes notify every affected route
- Dockerized, with auto-generated OpenAPI docs
Tech stack
In action
What I'd do differently
- The land mask is a static Natural Earth GeoJSON baked into the repo. It is accurate enough for planning demo routes and completely wrong for anything a real ship would trust — a production version needs proper bathymetry and draft constraints, not just "is this pixel water".