Web app · algorithms · 2026
Yatra Sync
Share the cab. Split it to the paisa.
Yatra Sync finds people heading the same way before you book an Ola or Uber, groups you into one cab and splits the fare by distance.
138
unit and integration tests
9
end-to-end browser tests
25–200
ride requests per simulation
₹0.00
lost to rounding

The problem
Office commutes, station transfers and airport runs are expensive to take alone.
Sharing a cab with strangers means guessing who is going your way, then arguing over who owes what.
How it works
Step 1
Match before you book
Riders post where they are going and when. The matcher runs shortest paths on a directed road graph and only suggests groups that pass every check: departure window, detour, waiting time, walking, luggage and seats.
Step 2
Consent, one rider at a time
Invitations are atomic and every rider accepts the current version of the plan. Nobody is auto-confirmed, double-booked or added to a full cab.
Step 3
Split in whole paise
The fare is divided by each rider's distance and seats using integer paise, so the shares add up to the cab fare exactly. If the real fare changes, every rider reviews the new shares.
Step 4
Measure it
Fixed-seed simulations of 25 to 200 ride requests compare the matcher against a baseline, with controls for delays, cancellations and outages.
The hard parts
- Fairness has edge cases
- A proportional split can charge a short-distance rider more than their solo fare. Shares are capped at the solo fare and the difference is redistributed.
- Cancellations
- When someone drops out, the group gets a replacement or a new split, and everyone consents again before anything is confirmed.
- Reproducible demos
- Fixtures use deterministic ids and relative future times. A fixed-clock test proves that a reset gives exactly the same data.
The proof
- 138 unit and integration tests (Vitest) and 9 end-to-end browser tests (Playwright).
- Benchmarked on simulations of 25 to 200 ride requests, with JSON and CSV exports.
- Runs locally with no API keys or external accounts.
Honest statusThe Jaipur routes and prices are illustrative, and bookings and payments are self-reported. No cab, payment or identity provider is connected.