Flatten SF finds the flattest route between any two points in San Francisco

Find the flattest route between any two points in SF

Flatten SF finds the flattest route between any two points in San Francisco

Flatten SF is a browser-based tool that computes the flattest walking or biking route between any two points in San Francisco. It uses 160,000 street segments, USGS 1-meter lidar elevation data, and the Overture/OpenStreetMap street graph. A slider lets users explore the trade-off between distance and climbing, from the shortest path to the flattest one worth walking, with stairways allowed on foot and excluded on a bike.

Sliding right never shortens the route and never adds climbing.
  1. lukasb

    Allow me to plug my own SF microsite https://isitsunnyinthemission.com

    Combine these two for the easiest bike ride to a sunny day

  2. DrProfresher

    This is super cool! The map and UI are super clean, well done!

    This makes me want to take out my longboard.

  3. jez

    It would be neat if it there were an option which added distance and elevation gain, but minimized the grade.

    For example, a route from SOMA to Nob Hill can be made flatter by approaching from either the east or west. Technically the "flattest" as measured by elevation gain between the two is straight up Taylor from Market, but it's much nicer to bike to the top of Nob Hill by going out of the way (e.g. Polk → California, Embarcadero → Broadway, etc.)

  4. danserfaty

    It's not accurate. I mapped it from my house on Cabrillo St in the outer Richmond to 4th avenue and it says I need to climb 25th avenue then walk Geary instead of correctly telling me to use 23rd avenue that is completely flat.

  5. pokpokpok

    The wiggle!

    (in honor of my old commute, which I miss)

    https://flattensf.com/#t~-122.40850~37.77493~-122.50940~37.7...

  6. askjdfksdbfhk

    There's a weird thing going on at 22nd and San Jose in the Mission, where it doesn't seem to understand that you can simply continue down 22nd, but instead takes a hook down San Jose before backtracking. I see some other weird discontinuities like this as I click around.

    I have to say that the Claude UI has made many inexplicable decisions here, including (but not limited to) the mysterious color coding, the confusing continuous slider over a discrete set, and the weird positioning of the height labels in the altitude graph.

  7. scaredginger

    This is great. Since SF is mostly a grid, I used to use the heuristic of only choosing paths that wouldn't take me further from my destination, avoiding going downhill but choosing the shallower uphill climb if a choice is given.

    Other than knowing the direction of my destination, it only used local information

  8. geor9e

    It's telling me to bike on Geary and Divisadero. No thank you I'd rather stay alive.

More from this day

2026-10-05