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

Original title: Find the flattest route between any two points in SF

> Hacker News story 49971230 · language: en · submitted 2026-10-05
> Web version: https://zeli.app/story/49971230
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 305 · by [ishan0102](<https://news.ycombinator.com/user?id=ishan0102>) · 💬 114
[original](<https://flattensf.com/>) · [HN discussion](<https://news.ycombinator.com/item?id=49971230>)

## Summary

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.

## Key quote

> Sliding right never shortens the route and never adds climbing.

## HN discussion (114 comments)

### [lukasb](<https://news.ycombinator.com/item?id=49983251>)

> Allow me to plug my own SF microsite https://isitsunnyinthemission.com
>
> Combine these two for the easiest bike ride to a sunny day

### [DrProfresher](<https://news.ycombinator.com/item?id=49983793>)

> This is super cool! The map and UI are super clean, well done!
>
> This makes me want to take out my longboard.

### [jez](<https://news.ycombinator.com/item?id=49972225>)

> 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.)

### [danserfaty](<https://news.ycombinator.com/item?id=49971638>)

> 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.

### [pokpokpok](<https://news.ycombinator.com/item?id=49971572>)

> The wiggle!
>
> (in honor of my old commute, which I miss)
>
> https://flattensf.com/#t~-122.40850~37.77493~-122.50940~37.7...

### [askjdfksdbfhk](<https://news.ycombinator.com/item?id=49972066>)

> 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.

### [scaredginger](<https://news.ycombinator.com/item?id=49972202>)

> 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

### [geor9e](<https://news.ycombinator.com/item?id=49973011>)

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

---

## Cite

- Page: https://zeli.app/story/49971230
- Date: 2026-10-05
- Source: flattensf.com (https://flattensf.com/)
- Hacker News: https://news.ycombinator.com/item?id=49971230

## Other languages

- zh: https://zeli.app/zh/story/49971230 · markdown: https://zeli.app/zh/story/49971230.md
- ja: https://zeli.app/ja/story/49971230 · markdown: https://zeli.app/ja/story/49971230.md
- ko: https://zeli.app/ko/story/49971230 · markdown: https://zeli.app/ko/story/49971230.md
- de: https://zeli.app/de/story/49971230 · markdown: https://zeli.app/de/story/49971230.md
- es: https://zeli.app/es/story/49971230 · markdown: https://zeli.app/es/story/49971230.md
- ru: https://zeli.app/ru/story/49971230 · markdown: https://zeli.app/ru/story/49971230.md
