Skip to content

Consider side of the road and crossing it via zebra&traffic lights for foot routing #836

Open

Description

@karussell

We do not take care about the direction for foot routing but especially when going opposite direction we have to take care regarding sidewalk=no taggings like here

Not sure what exactly is the problem here.

Activity

  1. neiljp commented on Oct 18, 2016

    @neiljp

    I've not paid great attention to GH development in this direction since my last examples, but does this also cover situations like the following? (this has only sidewalk=left on a section, at least!)
    http://www.openstreetmap.org/directions?engine=graphhopper_foot&route=45.49529%2C-122.82148%3B45.49389%2C-122.82631#map=18/45.49457/-122.82384

    Practically this is a complete pain, using transit from Millikan way to the building, since there is no sidewalk in front of Millikan business center on millikan way (particularly if in a wheelchair, though I appreciate that is not a current routing profile!)

    I am not aware of the specific legal situation, but given 'jaywalking' law in some areas, one would have to stay on the north side of millikan way and then cross at the junction with murray where there are crossing lights for sure...and there is no sidewalk there! In this case there is a very uneven dirt path one could take (and probably is by some), but it is not a sidewalk and in many cases 'no sidewalk' may imply a building or fence right up against the road. Millikan road can be very busy - separate to the legality, I would not prefer to cross it except at that junction, and would prefer to avoid walking in the road! (the route is completely intractable for a wheelchair!)

  2. karussell commented on Oct 18, 2016

    @karussell
    MemberAuthor

    Whould you share the link with some added via points how you'd prefer to take the route (as I'm not sure I understand the ground truth situation fully :) )

  3. neiljp commented on Oct 19, 2016

    @neiljp

    @karussell Basically the north side of Millikan way essentially has no proper sidewalk. However, I do not know if any router (including GH) takes into account left/right sidewalks and hence can meaningfully represent where to cross from one side to another, at a junction, pedestrian crossing, or wherever. Having discussed this somewhat on irc (#osm), the best route would probably be something like:
    https://graphhopper.com/maps/?point=Millikan%20Way%20Eastbound%20MAX%20Platform%2C%2097077%2C%20Beaverton%2C%20United%20States%20of%20America&point=45.493341%2C-122.821704&point=45.493792%2C-122.826247&locale=en-US&vehicle=foot&weighting=fastest&elevation=true&use_miles=false&layer=Omniscale
    This is based on the fact that there are pedestrian crossings (marked on the road, and tagged) at the 141st place junction (where the via point is), and a stop sign on the junction itself.

    A number of people might choose to walk the currently-suggested route, since it is the most direct, but there is only a very rough un-paved "sidewalk" in front of 14305 on the north side and no path to speak of (just where people have cut across, themselves) in front of the milikan business center.

    Note that I have since added a footway cut-through from the MAX station to schottky terrace, which I suspect would be preferred compared to the current suggestion, but still will require a 'short' section of either walking on a rough dirt/garden area or on the road in front of milikan business center, which I would suggest is not desirable for a router to suggest.

    If travelling from that MAX station, and requiring to cross only at a light-controlled junction, that would probably involve going east to Hocken Ave! Alternatively, of course, a transit-aware router might suggest a different stop, or taking a bus from the transit center ;)

    Again, please paste/link into a different issue if that's better!

  4. karussell commented on Oct 20, 2016

    @karussell
    MemberAuthor

    takes into account left/right sidewalks

    We do - see here

    hence can meaningfully represent where to cross from one side to another

    That is not done and is probably the biggest issue in this example (have therefor changed the title if that is okay for you).

    Also this is a tricky example as the service road in my opinion is a less 'frequent' and 'safe' way to walk on. Is this really a service road?

  5. changed the title [-]Foot routing glitch[/-] [+]Consider zebra etc for foot routing[/+] on Oct 20, 2016
  6. changed the title [-]Consider zebra etc for foot routing[/-] [+]Consider side of the road and crossing it via zebra&traffic lights for foot routing[/+] on Oct 20, 2016
  7. neiljp commented on Oct 25, 2016

    @neiljp

    I have read (and participated in!) quite a bit of these issues; my reference to left/right was specifically with regard to sidewalk=left|right, which I believe is not really touched on. IMO this may well be quite a significant development to implement, both as a non-GH developer (implementation) but also with the great potential, as I am not aware of any rules for routing in any other engine. I suppose java is not much different from C++, so one day I will have to look at the code and development environment myself ;)

    Re title, that is more appropriate for the issue I reported, but I'm not sure if it covers your original example!

    Re service road, do you mean "Southwest Millikan way transit center road" ? That is a one-way road with no sidewalks, and walking south along it does not feel very safe as the traffic is coming up behind you! (that is perhaps another 'safety' issue which could be included - preferring walking against the flow of traffic on a one-way road?). I did not pick it as a service road, but I'm not sure if you object to that tagging on the basis of foot routing issues (which I addressed above) or just if it is such a road?

  8. karussell commented on Oct 25, 2016

    @karussell
    MemberAuthor

    I suppose java is not much different from C++, so one day I will have to look at the code and development environment myself ;)

    Started with C++ too I can say it is similar but both have their quirks ;) - just let me know if you have questions (probably better in the forum)

    Re title, that is more appropriate for the issue I reported, but I'm not sure if it covers your original example!

    Uups, indeed. I'll rename once again and would ask you to create yet another issue?

    do you mean "Southwest Millikan way transit center road" ?

    I meant this service road here

    preferring walking against the flow of traffic on a one-way road?

    I'm not sure here as it is e.g. required by German law to walk on the left side of the road outside of a village (because they say it is safer)

    but I'm not sure if you object to that tagging on the basis of foot routing issues (which I addressed above)

    Yes, I just meant that the foot routing we expect service roads to be relative safe and so we have a hard time to reduce priority. But as I now understand: our aim should be to increase priority of the other road instead (?)

  9. neiljp commented on Oct 25, 2016

    @neiljp

    Re issue creation/split, while I appreciate your initial report might take priority, the majority of our discussion is on the newer title, so would it make sense to keep that here and duplicate the small portion of yours in another issue? (apologies for hijacking!)

    That service road you indicate is apparently named as I said, on the general OSM map layer at least ;)

    Re service roads being 'safe' and preferred, I see the general benefit and approach of doing that, including eg. that residential roads are similar. I think the big change that I'm seeing here and in foot routing generally via highways (roads) is that, as far as foot (or hike?) routing is concerned, explicit sidewalk tagging should override a lot of other priorities re class of road. For a fastest/shortest route (no difference for pedestrians?), a service or residential road with no sidewalks is less desirable than a major road with them.

    • so yes, prioritise the other road ;)

    Re the 'left side of the road', I believe it is advised (not sure if law) in the UK to do the opposite (due to other traffic direction); I would say the general principle is to walk in the direction opposite the 'nearest' traffic flow, so you can see oncoming traffic on your side (excepting blind corners, maybe?). If walking 'sides' are included in the routing on sidewalk=no roads, that could be detailed in directions too, and factored in to the crossing rules? Re the one-way service no-sidewalk road, I hope you can see now that I just meant it is less safe walking with traffic coming from behind you - and that 'safety' rule could be another option (or included by default), so eg. travelling north on that service road would be considered much better than going south. This is only for roads with no sidewalk, of course, so as long as a sidewalk can be used, that would probably be the preferred road-section to use? (if safety is prioritised)

  10. karussell commented on Oct 25, 2016

    @karussell
    MemberAuthor

    so would it make sense to keep that here and duplicate the small portion of yours in another issue

    Sure, done :) #847

    explicit sidewalk tagging should override a lot of other priorities re class of road.

    Yes

    For a fastest/shortest route - no difference for pedestrians

    Not always. As soon as you have priorities like preferring safer or more silent roads, the 'short' route is shorter ;)

    you can see oncoming traffic on your side

    That is highly likely a research topic as you would need to take into account buildings, tunnels, road width, average speed, road borderline, ...

    that could be detailed in directions too, and factored in to the crossing rules

    yes, either this or directly model the "sideway roads" as separate ways, not sure.

    I hope you can see now that I just meant it is less safe walking with traffic coming from behind you

    Yes, I think I understand this better now :)

  11. neiljp commented on Oct 25, 2016

    @neiljp

    Thanks for #847 :)

    Agreed that 'short' is affected by 'safe' :)

    Re seeing traffic on the side you're walking, a quick search seems to agree, at least for US & UK - no idea about other areas, but I'd assume it was similar!
    eg. http://www.saferoutesinfo.org/program-tools/what-side-road-should-i-walk
    It could be a research topic - but also, could be somewhere for OSM tags to help hint (maybe) eg. if sidewalk=no (or none) then consider prefer_road_side=left|right, or failing that some crazy analysis of curves in the road, buildings, etc ;)

    "sideway roads"? Do you mean the "not a sidewalk but people need to travel by foot here somehow" ways, added in the routing model?

    Re implementation, do you have any ideas at this stage? Initially I imagine a duplicate graph for left & right, with extra connections at key points, but that probably isn't very memory-efficient. That said, my gut feeling would be that using attributes for each way to hold that info might make it very complicated - albeit perhaps more tractable ;)

  12. karussell commented on Oct 25, 2016

    @karussell
    MemberAuthor

    "sideway roads"? Do you mean the "not a sidewalk but people need to travel by foot here somehow" ways, added in the routing model?

    I mean what you described here:

    Initially I imagine a duplicate graph for left & right, with extra connections at key points, but that probably isn't very memory-efficient.

    To the implementation:

    my gut feeling would be that using attributes for each way to hold that info might make it very complicated - albeit perhaps more tractable ;)

    Yeah, as always we have the choice of making the import complex or mess with the algorithm ;)

    But as the side of the road is also important if no sidewalk is existing (postman delivery) we should probably try to tweak the algo. See #680

  13. sebalis commented on Nov 22, 2016

    @sebalis

    Another example: this route is an important connection from a popular residential area in Bielefeld to the main railway station. As soon as the intermediate point is removed, the route wrongly uses the other side of the main road. The sidewalk tags for the two sides of the road are set correctly, i.e. sidewalk:right everywhere except for a section of the southern half where the route uses the separate footway slightly off the road. The route with the intermediate point is what people use.

  14. Octanas commented on Apr 17, 2020

    @Octanas
    Contributor

    I'm working on a project with foot routing and we're using Graphhopper for it. One of the functionalities we needed was for road crossings to be taken into account to indicate the user where to cross the road, if it is needed. This seemed like the correct issue to post on.

    What's the current state of this functionality? Is it being worked on? If not, could I try implementing it (should it be implemented in another routing profile & would you be able to support the functionality in future updates)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions