How it works
Risk, weighed before you drive.
Tsamaya layers a risk model on top of ordinary turn-by-turn routing. Here’s the whole thing, from the moment you pick a destination to the route on your screen.
The pipeline
From destination to lower-risk route, step by step
-
1 · Fetch the fastest route
We start with an ordinary Mapbox route, the same quick line any map app would hand you. That’s the baseline we test against.
-
2 · Sample & test against risk zones
The route is sampled along its length and tested against all active danger zones for the current time band. Only red and elevated-orange zones count. Caution-yellow is shown but never forces a detour.
-
3 · Already on a safe corridor?
If the route is already running along a curated safe corridor through a zone, that counts as a pass-through and no detour is needed. Corridors are the local knowledge that stops the app over-reacting.
-
4 · Find bypass waypoints
For genuine danger, Tsamaya picks the nearest safe-corridor point to each hotspot and injects a small number of waypoints, nudging the route around the area rather than through it.
-
5 · Re-route & sanity-check
We re-fetch with those waypoints. If the safer line ends up substantially longer than direct, we don’t pretend it’s reasonable. We hand back the direct route, clearly flagged as risky, and let you decide.
-
6 · Drive it your way
Follow along with in-app turn-by-turn navigation, or hand off to Google Maps, which we seed with the detour points so it follows the lower-risk line instead of recomputing its own.
Time-aware
The same road isn’t equally risky all day.
Every zone carries three separate risk bands. Tsamaya reads the clock and routes against the band that actually applies right now.
Want the engineering detail?
Architecture, data pipeline and the exact thresholds are on the technical page.