Skip to content

Wrong interpretation of cycleway:left:oneway=-1 #2775

Closed

Description

@scaidermern

Way https://www.openstreetmap.org/way/397484243 has a direction from west to east. It is tagged with (among others):

  • cycleway:both=track
  • cycleway:left:oneway=-1

Which means there is a cycleway on both sides. Also, the left cycleway (which is the one on the northern side in this example) can only be used in one direction, which is against the direction of the way, i.e. only from east to west. This restriction applies only to the cycleway on the left (i.e. northern) side, not to the cycleway on the other side of the road.

Nevertheless GraphHopper is not able to route along this way from west to east in bicycle mode:
https://graphhopper.com/maps/?point=51.04279%2C13.69199_51.04279%2C+13.69199&point=51.04347%2C13.69786_51.04347%2C+13.69786&profile=bike&layer=Omniscale

I presume because the above restriction is not interpreted correctly. Maybe cycleway:left:oneway=-1 is wrongly applied to both cycleways?

I haven't checked if the same error occurs for cycleway:right:oneway.

I guess even without the tag cycleway:both=track bicycle routing should work in both directions because bicycles are still allowed to use the road when cycling from west to east.

Activity

  1. added a commit that references this issue on Mar 25, 2023
    3b55b4b
  2. karussell commented on Apr 14, 2023

    @karussell
    Member

    This was fixed in #2776 (manually merged)

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