Find the flattest route between any two points in SF
ishan0102
155 points
52 comments
October 05, 2026
Related Discussions
Found 5 related stories in 93.1ms across 8,581 title embeddings via pgvector HNSW
- The entire city of San Francisco as a video game centrosphere · 412 pts · August 24, 2026 · 48% similar
- Show HN: Remap – bike routing that builds loops from the best roads, on-device basil · 12 pts · August 26, 2026 · 47% similar
- A Faster Shortest Path Algorithm leumon · 34 pts · September 22, 2026 · 44% similar
- San Francisco Onion Futures Company z-mach9 · 107 pts · September 19, 2026 · 42% similar
- Inception-style curved map for turn-by-turn directions smoser · 463 pts · August 28, 2026 · 42% similar
Discussion Highlights (20 comments)
pokpokpok
The wiggle! (in honor of my old commute, which I miss) https://flattensf.com/#t~-122.40850~37.77493~-122.50940~37.7...
tedd4u
Cool! Any way to toggle on street names on the map?
mvkel
Absolutely love the live profile updating when you swipe from flatter to shorter.
Terr_
> The slider runs along the whole trade-off between distance and climbing [...] Climbing is cumulative gain Another mechanism might be a kind of user-defined cost-curve, where a gradual climb to 10 might be preferred over a steep climb to 8, etc.
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.
qurren
Doesn't Google Maps in bicycle mode already do this?
fnord77
Try downtown to somewhere in Bernal, say Progressive Grounds coffee house. The flattest route is only 0.2 miles longer than the shortest, but goes from 200ft of climbing to 500ft of climbing, 12% max grade to 22% max grade. Apple maps picks the shortest every fucking time.
cheeaun
Cool, I used to build this https://github.com/cheeaun/steepless (2014)
jdxcode
someone should make flattendallas.com as a joke
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.
andalinmicphew
Checkout https://bikehopper.org for solid elevation, bike infrastructure and transit-aware routing around the Bay Area. Some friends and I built this about 5 years ago and continue to maintain it. We use 1m DTM elevation data for SF and 50m for rural areas. DTM is a must for elevation based routing in SF as there are so many sizable buildings, large trees the other models fail hard.
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
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.)
nerdtalker
You should consider adding drive as well, some of us have manual transmissions still, although the Bike mode returns pretty reasonable results.
ziofill
Sorry if this is a stupid question, but isn’t the climb independent of the route?
wmichelin
It’s all just the wiggle lol
geor9e
It's telling me to bike on Geary and Divisadero. No thank you I'd rather stay alive.
laurencerowe
This seems to have the same issue I saw with Google Maps where it directed me along 29th St from near Mission Bernal Safeway to Diamond Heights Safeway. This includes a 22.7% grade! It's much faster and easier (at least on my cargo e-bike) to take the longer way around up Clipper St (12% grade). The bug seems to be apparent when you set the end point at Duncan & Diamond Heights Blvd and the start point directly north along Clipper. This route seems to maybe save 1 ft of climbing but goes up a 23% grade. https://flattensf.com/#t~-122.43968~37.74865~-122.44028~37.7... Half a block up the street it takes the sensible route with only a 13% grade. (Between the two different starting points is 41ft of climbing.) https://flattensf.com/#t~-122.44087~37.74864~-122.44028~37.7...
very_good_man
I love Trick Dog!
modo_
Would love an option for the steepest route! I run a lot in SF and try to maximize vertical gain on my routes