Open source rideshare app
Find a file
Philip Peterson d0fb299f13 Price rides with rate cards, surge and driver share, by market
Dispatch now prices rides with a basic model inspired by public
information on Uber and Lyft (docs/pricing.md): base + per mile + per
minute, times a per-zone surge multiplier from recent requests against
available drivers, plus a booking fee, with a minimum. Riders get an
upfront quote per ride type and book against it; drivers see and earn
a configurable share (75%) of the fare.

Rate cards are per market, chosen by pickup location: San Francisco
(third-party 2026 rates) and Fairbanks, AK (its own UberX and UberXL
rates, Comfort from Anchorage, no Black). Everything is configurable
via PRICING_FILE or POST /test/reset.

Tests use a simple test card by default so auction scenarios keep
their numbers; new scenarios cover SF rates, Fairbanks rates and surge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 08:47:10 -08:00
.claude Initial commit 2026-09-28 00:56:27 -08:00
assets Add ride app, auction dispatch, and multi-phone Cypress simulator 2026-09-30 01:56:54 -08:00
cypress Price rides with rate cards, surge and driver share, by market 2026-09-30 08:47:10 -08:00
docs Price rides with rate cards, surge and driver share, by market 2026-09-30 08:47:10 -08:00
public Add driver app with driving mode, and mock location in the simulator 2026-09-30 08:14:23 -08:00
server Price rides with rate cards, surge and driver share, by market 2026-09-30 08:47:10 -08:00
src Price rides with rate cards, surge and driver share, by market 2026-09-30 08:47:10 -08:00
.gitignore Add ride app, auction dispatch, and multi-phone Cypress simulator 2026-09-30 01:56:54 -08:00
AGENTS.md Initial commit 2026-09-28 00:56:27 -08:00
app.config.ts Add driver app with driving mode, and mock location in the simulator 2026-09-30 08:14:23 -08:00
app.json Add driver app with driving mode, and mock location in the simulator 2026-09-30 08:14:23 -08:00
CLAUDE.md Initial commit 2026-09-28 00:56:27 -08:00
cypress.config.ts Split auction scenarios into one Cypress spec each 2026-09-30 06:39:14 -08:00
eas.json Add driver app with driving mode, and mock location in the simulator 2026-09-30 08:14:23 -08:00
eslint.config.js Add ride app, auction dispatch, and multi-phone Cypress simulator 2026-09-30 01:56:54 -08:00
LICENSE Initial commit 2026-09-28 00:56:27 -08:00
metro.config.js Add driver app with driving mode, and mock location in the simulator 2026-09-30 08:14:23 -08:00
package-lock.json Add ride app, auction dispatch, and multi-phone Cypress simulator 2026-09-30 01:56:54 -08:00
package.json Add driver app with driving mode, and mock location in the simulator 2026-09-30 08:14:23 -08:00
tsconfig.json Price rides with rate cards, surge and driver share, by market 2026-09-30 08:47:10 -08:00