Settings

Theme

Transforming OpenStreetMap into thick roads and intersections

a-b-street.github.io

417 points by dabreegster 4 years ago · 35 comments

Reader

takk309 4 years ago

I am a professional traffic engineer and I build micro-simulation models for most of the projects I am involved with. I can say that compared to software that is used in industry (PTV Vissim, PTV Vistro, and Trafficware Synchro) it looks like A/B is a reasonable toy model that can get pretty close to the real thing. I think it is great that software exists at a level for individuals without huge budgets to be able to build and play around with traffic networks. Automating the intersection setup goes a long way toward this type of tool being accessible to the lay person. All that being said, I think the limitations of any model are important to understand when interpreting the outputs. I can take any model and make traffic flow or decrease the delay per vehicle, that doesn't mean my results are realistic.

Keep up the work, this is an awesome tool and I hope it can get to the point where it can easily help inform people about traffic design and simulation.

  • dabreegsterOP 4 years ago

    Thank you for the industry insight! I'm definitely not trying to match the degree of realism and calibration with the professional stuff -- there's no way I could, without way more resources. A/B Street's simulation is more for visualization than getting meaningful results -- although I am quite proud of the dataviz we've baked in.

    From talking to planners, reaching for these tools is a huge time and money commitment, even assuming they have a license and somebody trained to use it. Some ideas don't even get off the ground, and some projects take community feedback after spending months building the initial models. I think there's a huge missing space for rapid prototyping. The fact that I see planning agencies regularly include graphics from streetmix.net is evidence of this -- it's a quick way to communicate, so often how a conversation starts. I'd simply like to expand that space.

    • takk309 4 years ago

      At the end of the day better communication between the public, engineers, planners, and respective agencies is the goal. We have a joke that gets repeated all too often, everyone is a traffic engineer, just ask them! Rapid iteration is key to be able to look at all scenarios, no matter how crazy they may be.

  • anigbrowl 4 years ago

    What kinds of feedback does your profession care about? I am constantly frustrated as a pedestrian with the traffic flow and signal timing problems in my area but I feel like it's pointless to submit a complaint to my local municipality because my anecdotal data points will probably be disregarded.

    I'm not very good at nor patient for trying to do neighborhood people organization and go around in circles with City Hall for 5 years (as has been the case with other neighborhood things like park use etc. that I have previously been involved in). But I am tried of losing about 5-6 hours a year to excess wait times at intersections despite trying to avoid the slowest crossings.

    • SECProto 4 years ago

      I've lived a few different places, also working in transportation engineering. I personally care a great deal about accessibility, and would much rather delay cars slightly than pedestrians (for numerous reasons). For example, when reviewing traffic control plans, etc, I always make comments or suggest changes along those lines. But ultimately, it comes down to what the municipality wants to prioritize - unless there are safety issues, it's hard to do more than suggest and push for something better.

      If you want to make a difference, making comments (about ongoing projects, particularly) will tend to have more impact. For something more systemic (like light cycles deprioritizing pedestrians), I found the best solution was to move to a better city.

      If that's not a solution for you :) then another option you might want to consider is having a meeting with your municipal (or even higher) level elected representative - invite them for a walkthrough of a more problematic space, and try to explain the issues and possible solutions as calmly/rationally as possible. And without attacking car culture directly, as that tends to get people defensive.

      • anigbrowl 4 years ago

        Thanks a lot for the feedback. I live near a traffic artery so I've always known there were trade-offs, but the frustration does mount after a while. My #1 beef is when the traffic is paused but you just missed the light change when you hit the ped xing button, and now it's not safe to rely on the light staying green while you dart across.

        • waits 4 years ago

          San Francisco avoids this particular problem by having the walk signal turn on automatically when the car signal is green — no need to hit a button (most intersections don't have buttons at all, and the ones that exist aren't even hooked up to the light).

          I don't know if this would translate well to other cities — SF has a very pedestrian-friendly layout with narrow, slow streets , small blocks, and short light cycles — but it works well enough here that it might be worth trying elsewhere.

          • smichel17 4 years ago

            When I visited Barcelona, I was struck by their intersection design. It's great.

            Instead of squares, their streets intersect in diamonds, where the (largely one-way) streets come out of the corners. They're a bit larger than a square intersection-- it's like you took the square, and then filled in four right triangles at each of the corners.

            The main effect is that crosswalks are significantly pushed back from the intersection center. As a pedestrian, there's far less ambiguity about where the cars are going (regardless of whether they use their signal). Same for drivers: you never have to wonder which way a pedestrian is gong to cross when they're standing at a corner where two crosswalks meet, because there are no such corners.

            Of course, this also makes intersections much bigger. This is offset by having parking spaces along the edges of intersections.

            • jonas21 4 years ago

              That might be great if you're visiting or just out for a stroll.

              But let me tell you, it can be infuriating if you're walking to actually get somewhere. The city I live in has been replacing 2-way and 4-way stops with roundabouts, which has a similar effect of moving the crosswalks away from the intersection. Now it takes much longer to walk anywhere because you keep having to detour out of your way to cross the street.

        • SECProto 4 years ago

          Yes, 'beg buttons' are awful (as are the 'red-revert' signal designs you allude to).

      • benrbray 4 years ago

        Can you or any other traffic engineers here tell me why we find it acceptable that cars are allowed to make unprotected left turns while pedestrians have a walk signal? Right turn on red is bad enough, but unprotected lefts give drivers a direct incentive to torpedo into crossing cyclists / pedestrians, as slowing down would mean a collision with oncoming traffic! Too many intersections in downtown Atlanta, for instance, have no left turn arrow, and I felt constantly in danger.

        • SECProto 4 years ago

          Most North American road infrastructure has been rebuilt over the last century to be automobile-centric. "We" deem that conflict to be acceptable because the alternative is more complicated phasing - most of which results in delays to car traffic (and pedestrians!), and so most places won't accept it. For details, here's [1] a document that outlines the tradeoffs in various different signal phasing designs.

          TL;DR is that "we" won't prioritize any road user except the automobile.

          [1] https://ops.fhwa.dot.gov/publications/fhwahop08024/chapter4....

          • takk309 4 years ago

            I agree completely with this comment. Most places signal timing is done with the main scoring metric of reducing vehicle delay. Pedestrians are just an after thought that can be squeezed into a vehicle specific timing plan. As an example, how often do you see a pedestrian scramble, walk signals in all directions, outside of somewhere like Time Square?

            • benrbray 4 years ago

              Some of the problematic intersections in Atlanta have slowly been replaced with scrambles, and it's amazing as a pedestrian. I hope to see more and more of those!

  • jerry1979 4 years ago

    As someone with interest in traffic models, what spaces do you or your peers hang out outline?

    • takk309 4 years ago

      That is a tough question because I can't think of any places really. Maybe look into the Institute of Traffic Engineers, they may have a forum of some sort.

dabreegsterOP 4 years ago

A/B Street is an open-source traffic simulator that lets you edit roads and intersections, based on OpenStreetMap data. But to even do that, first we have to geometrically represent the transportation network in great detail. This is a second deep-dive into how things work.

modeless 4 years ago

You can play it right in your browser: http://play.abstreet.org/0.2.58/abstreet.html What a cool project!

aresant 4 years ago

Years back as OSM was fading and the v1.0 of mapbox started rolling out my pedestrian view of the space was that we were seeing the endgame unfold

It's insane to see the levels of depth still to plunge - this is incredible documentation and a very cool project

PS - I'd upvote twice if I could for incorporate of cthulhu mythos!

Dylan16807 4 years ago

> Highway on/off ramps https://a-b-street.github.io/docs/tech/map/geometry/index.ht...

It's hard to say which is better here, to be honest. A giant blob of gray is less helpful than showing some lanes, but the original version is much closer to the actual shape: https://www.google.com/maps/@47.6564275,-122.3223112,203m/da...

Though apparently even google can't handle this intersection. Where did the middle layer of road go, google? https://www.google.com/maps/@47.6556467,-122.3191587,69a,35y...

  • dabreegsterOP 4 years ago

    Hmm, I guess I never checked satellite for that example. Part of the motivation there was improving the simulation. While vehicles are moving through the intersection, they grab a lock and prevent conflicting movements. A huge intersection takes longer to cross and was causing unrealistic backups here. But that was only because of the wacky lane-changing model (can only change between those 4 northbound lanes in an intersection, where conflicts are modeled) and poor lane placement at the time. Some of that's been fixed, worth revisiting the shape.

db48x 4 years ago

Very cool. Unfortunately it looks like I managed to put it into an infinite loop in the tutorial. Or possibly I just didn’t wait long enough after saving my changes…

  • dabreegsterOP 4 years ago

    I haven't given any love to the poor tutorial mode in ages, so I'm not surprised you found a bug. Please file an issue (https://github.com/dabreegster/abstreet/issues) and describe how to reproduce the problem. If you can open the browser developer console (Ctrl+shift+I in firefox), often the last part will be really helpful.

toomuchtodo 4 years ago

This is the coolest project I've seen in a long time. I cannot wait to see how this evolves and scales up.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection