Inspiration

A city can improve its average transit trip while still leaving vulnerable neighborhoods stranded far from hospitals, groceries, and high schools. Extreme heat makes exposed walks and unshaded bus waits even harder. TransitGap makes both trade-offs transparent so communities and transit riders can test exact budget-neutral reallocations.

What it does

Compare a peak-corridor baseline against an exact equity-optimized bus and shade-shelter allocation across three synthetic cities: a sprawling Sunbelt suburb under a heat advisory, a midsize rail-and-feeder city, and a rural county with limited service. Inspect per-neighborhood 30-minute access, transit dependence, senior and student shares, and heat-exposed waiting.

Adjust bus headways, relocate stop shelters, or switch to exact departure-time timetable routing. Print a one-page bilingual council brief in English or Spanish, export GeoJSON, CSV, and a replayable SHA-256 audit bundle, and run completely offline via a Service Worker with zero backend or data collection.

How I built it

Built with zero runtime dependencies using vanilla HTML, CSS, JavaScript, SVG, Service Workers, and Web Crypto. A shortest-path solver connects street walking with scheduled bus and rail legs, accounting for wait times, exact transfers, and heat-advisory walk penalties. An exact discrete optimizer evaluates every feasible fleet allocation against a composite objective combining mean travel time, access Gini inequality, and heat-exposed wait, then places shade shelters where modeled exposure relief is highest.

Synthetic benchmark results and verification

  • Sunbelt suburb (same fleet & shelter budget): 30-minute access increases from 35.4% to 41.5% and heat-exposed wait drops from 6.23 to 4.12 min/trip (while honestly flagging a slight access Gini rise).
  • Rail-and-feeder city: 30-minute access rises from 42.4% to 54.3%, mean trip falls from 29.97 to 27.58 min, and access Gini improves from 0.0929 to 0.0760.
  • Rural county: honestly surfaces that 6 neighborhoods still exceed 45 minutes to the hospital under any feasible budget (Far Mesa floor 127.4 min), proving a better average is not universal access.
  • 351/351 automated Node tests pass, cross-checking Dijkstra against an independent Bellman-Ford solver and brute-force optimum verification, plus 11/11 headless Chrome checks at 1280x800 and 390x844 (offline reload, EN/ES 1-page print, SHA-256 replay).

Attribution and AI disclosure

All three cities use synthetic modeled datasets clearly labeled in the UI and council briefs; no real personal data is collected. The app runs no AI model at runtime. AI coding assistants (Devin / GPT-6.2 / SWE-2) assisted with implementation, adversarial testing, and documentation review during the hackathon window; all solver math, benchmarks, and live browser checks were verified directly.

Built With

Share this project:

Updates

Submission history