Find the flattest route between any two points in SF

(flattensf.com)

63 points | by ishan0102 1 hour ago

12 comments

  • askjdfksdbfhk 14 minutes ago
    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 14 minutes ago
    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.
  • danserfaty 1 hour ago
    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.
    • jeffbee 40 minutes ago
      I think this comes down to the DEM they are using. I think it would have come out better if they had used USGS 3DEP DTM at 25cm.

      Edited: which apparently is hosted for free on AWS S3.

    • almstimplmntd 33 minutes ago
      ah, I think this is related to SF's "Slow Streets" program and a genuine bug in the parser.

      Cabrillo is a Slow Street, and the parser read its "destination-only" tag as closed to pedestrians, so the tool couldn't see the street at all (and started you a block over?). fixed and deployed; your trip should now go Cabrillo → 23rd → Geary.

  • cheeaun 22 minutes ago
    Cool, I used to build this https://github.com/cheeaun/steepless (2014)
  • pokpokpok 1 hour ago
    The wiggle!

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

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

  • mvkel 1 hour ago
    Absolutely love the live profile updating when you swipe from flatter to shorter.
  • jdxcode 16 minutes ago
    someone should make flattendallas.com as a joke
  • Terr_ 1 hour ago
    > 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.

  • qurren 1 hour ago
    Doesn't Google Maps in bicycle mode already do this?
    • Arainach 32 minutes ago
      There are many constraints to satisfy, and avoiding hills is but one of them.

      Most of us would take a hill with a protected bike lane over a flat 45mph.

  • tedd4u 1 hour ago
    Cool! Any way to toggle on street names on the map?
  • fnord77 39 minutes ago
    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.

  • sergiotapia 12 minutes ago
    This reminds me of a funny story for my first trip to SF. I left the office at 9 and had time to burn until my flight at 1pm.

    I decided to walk to the japanese district and check out some shopping there, it was 15 minutes in google maps. I walk every day at home, 2 miles is like 30 minutes ish for me. For some reason it took me 50 minutes (!), and a WHOLE lotta climbing.

    And I had to dodge a bunch of drug addicts yelling at people.

    By the time I got to japantown I was drenched in sweat lmao so I had to cool off in the shade but man that SUCKED. Never again.