Skip to content

Consider "edge based"-only subnetworks #1807

Closed

Description

@karussell

It is possible to create "edge based"-only subnetworks so we should likely make the subnetwork removal edge-based or rework the mechanism. E.g. this turn relation disallows the access of cars into the subnetwork from North and this oneway blocks access from West (which is probably a mapping error).

Leading to "Connection between locations not found" - link.

Here is a screenshot of the situation: There is a 'straight-only' turn relation at the junction between Franziskastraße and Gudulastraße which restricts access to Gudulastraße, but at the same time its not accessible from the West/South, because it is a one-way:

image

Activity

  1. easbar commented on Nov 27, 2019

    @easbar
    Member

    Hmm depending on whether or not we remove such subnetworks either the location lookup or the routing fails. Not sure whats better to be honest :) Maybe the location lookup error is slightly better meaning whenever we are able to find the coordinates we can find a connection too. But its certainly useful to be able to detect such subnetworks so they can be reported as mapping errors.

  2. karussell commented on Nov 27, 2019

    @karussell
    MemberAuthor

    An edge-based subnetwork removal would improve the situation. After the removal the location index would often not fail and instead it would snap to the "main land" and would then allow routing to be done without the "connection not found" error.

    Another solution would be to do a "small" dijkstra for every location until they leave the most smaller subnetworks or always initializing not just one node or edge as start but multiple. But those solutions have other disadvantages, but due to #1776 we should reevaluate the situation.

  3. easbar commented on Nov 27, 2019

    @easbar
    Member

    An edge-based subnetwork removal would improve the situation. After the removal the location index would often not fail and instead it would snap to the "main land" and would then allow routing to be done without the "connection not found" error.

    Yes I think I agree. But still when snapping to the main land a user might be just as confused about the point snapping to the mainland as she might be confused about the route not being found. The real problem is the bad mapping in this case and ideally this should be somehow reported to the user. Maybe this can be achieved by not removing the subnetwork in the first place and reporting something like 'start and target locations belong to different networks (probably due to bad OSM data)'. Of course this would only be an improvement if the user had the option to 'not snap to isolated networks' or something...

  4. karussell commented on Nov 27, 2019

    @karussell
    MemberAuthor

    But still when snapping to the main land a user might be just as confused about the point snapping to the mainland as she might be confused about the route not being found.

    Yeah, that was what I also thought, especially because OSM improves, but most users disagree :) ... if you have dozens or hundred of points and many such requests then you prefer that this is automatically done.

    The real problem is the bad mapping in this case and ideally this should be somehow reported to the user.

    Yes, in this case. But what are you doing if you have a small network behind "private" barriers? Or where signs with specific limits to e.g. weight introduce such islands for only some bigger trucks or in the future for some dynamically configured vehicle?

    Maybe this can be achieved by not removing the subnetwork in the first place and reporting something like 'start and target locations belong to different networks (probably due to bad OSM data)'

    Do you mean reporting or forcing? Reporting does not really solve the problem for users. (BTW: we already do something like this for landmarks)

    And forcing, yes, this would mainly solve the issue, except when, by accident, you start with a location with the wrong subnetwork number and the following locations (e.g. EdgeFilter forces to same number) will have a different subnetwork number and so the request will fail. Still we would need to store more than 1 byte per node.

  5. karussell commented on Nov 27, 2019

    @karussell
    MemberAuthor

    not snap to isolated networks

    How would you define this? There were cases where we removed smaller networks that were real islands and where it would be ok to calculate routes, and then there were other huge subnetworks that were the private roads of the DESY collider area (there were not marked as private but the barrier blocked access to the area and made the roads disconnected).

    What we basically would need to solve all these details is that we already start the search while the lookup.

  6. easbar commented on Nov 30, 2019

    @easbar
    Member

    Ok I'm convinced :) Lets just make the subnetwork seach edge-based for now.

    Do you mean reporting or forcing?

    I meant reporting. Reporting would be useful to the user if there was an additional flag like 'allow_snapping_to_subnetworks=false' (and make 'false' the default to resemble the current behavior).

    How would you define this?

    We could do it just as we do it now (use the min subnetwork size to define which subnetworks are 'isolated', just instead of removing them tag them as 'isolated', so at query time we can decide whether we should snap to the main network or snap to the isolated subnetwork (potentially risking a connection not found error)).

  7. karussell commented on Dec 1, 2019

    @karussell
    MemberAuthor

    use the min subnetwork size to define which subnetworks are 'isolated'

    This is a very good idea, that would cost us also only one bit per node or edge and we could improve the current situation.

  8. easbar commented on May 17, 2020

    @easbar
    Member

    Another possible solution here would be implementing the turn restrictions as soft constraints, but this only really works as long as we can assume the weightings to be time-based (or include some kind of 'priority')

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions