Product · 2026

Downhill Roads

A world map of roads worth riding downhill. Every road is coloured by steepness or by corners per kilometre, with a height profile one click away.

Downhill Roads — screenshot

Downhill skaters and motorcyclists spend hours on satellite maps looking for the perfect road: steep enough, twisty enough, and smooth. Downhill Roads does that search for them, for every road on a continent.

What it does

  • Paints every matching road in the browser, coloured on one continuous scale by steepness or corners per kilometre.
  • Filters on slope, length and road type without hitting the server. Panning and filtering run entirely on the client.
  • Shows a height profile for any road, with tight corners marked. You can also drop two pins to inspect any stretch you like.
  • Lets riders save favourites and named lists of roads, places and A→B stretches.

How it’s built

  • Data pipeline: OpenStreetMap roads joined to elevation models, computed per country in Python with Polars, and stored as Parquet on Cloudflare R2.
  • Vector tiles: baked into a single PMTiles archive per continent. Clusters at low zoom, pins in the middle, polylines up close, so a whole continent paints smoothly.
  • App: FastAPI serving a Vite + React single-page app with MapLibre GL. Postgres only for accounts and lists, so the map works without a database.
  • Quality: CI with tests and coverage on every change. I built it together with two code contributors from Switzerland.

What was hard

Making a continent’s worth of roads fast in a browser on a phone. The answer was to precompute everything that can be precomputed, ship it as one static tile archive from object storage, and keep filtering on the client.

← Back to home