Skip to content

legacy/407-tolls

Repository files navigation

407 Tolls

Toll calculator for Highway 407 ETR. Single trips, daily commutes, all five vehicle classes.

Open source and open to contributions.

Live: 407tolls.com

What it does

  • Calculate toll for any interchange pair, any time slot
  • Estimate daily/weekly/monthly/yearly commute costs with holiday-aware scheduling
  • Compare nearby interchanges to find cheaper on-ramps
  • Support for motorcycle, light, medium, heavy single, and heavy multi vehicles
  • One-way and round trip commute options
  • Shareable links with OG previews

How it works

Rates come from the official 407 ETR rate charts. Distances and zone boundaries are sourced from the 407 ETR toll calculator API. Tolls are calculated using per-zone rates across 12 time slots, both directions, for all vehicle classes.

Stack

  • Core: TypeScript toll calculation with Zod schemas, cached breakdowns
  • Web: Next.js 15 App Router, Tailwind CSS, MapLibre GL
  • Data: 41 interchanges, 12 zones, 288 rates per vehicle class
  • Deploy: Vercel

Run locally

pnpm install
pnpm turbo dev

Open localhost:3000.

Project structure

packages/core    Toll calculation, rates, zones
packages/web     Next.js frontend
scripts/         Data pipeline (fetch interchanges, distances, gantries)

Contributing

This project is open source. Bug reports, rate corrections, and feature PRs are welcome. See CONTRIBUTING.md for details.

Disclaimer

Not affiliated with 407 ETR. Estimates based on published 2026 rates. Actual charges may vary.

About

Toll calculator for Highway 407 ETR. Estimate trips, commute costs, and find cheaper on-ramps.

Topics

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages