Skip to content

Bike priority determination problem for tag combination of cycleway:left and cycleway:right #2969

Closed

Description

@ratrun

Describe the bug
In case that an edge contains both tags cycleway:left and cycleway:right the better priority should be assigned, but this is currently not the case

This test fails passes:

        way.clearTags();
        way.setTag("highway", "primary");
        way.setTag("cycleway:right", "lane");
        assertPriority(SLIGHT_PREFER, way);

this test currently fails:

        way.clearTags();
        way.setTag("highway", "primary");
        way.setTag("cycleway:right", "lane");
        way.setTag("cycleway:left", "no");
        assertPriority(SLIGHT_PREFER, way);

To Reproduce
See https://community.openstreetmap.org/t/neue-routing-engine-valhalla/7204/55

The route is this one: http://localhost:8989/maps/?point=50.7897%2C6.0958&point=50.7872%2C6.0932&profile=bike&layer=OpenStreetMap

Expected behavior
The primary road should not be left and the gas station detour shall be avoided in this case

System Information

master

Screenshots & Logs

The internally assigned priority for the primary segment is "BAD":

Bildschirmfoto vom 2024-04-11 18-36-56-crop

I'll try to prepare a PR for it

Activity

  1. added a commit that references this issue on Apr 12, 2024
    1d6b5d9
  2. added a commit that references this issue on Apr 15, 2024
    60405c4
  3. added this to the 9.0 milestone on Apr 15, 2024
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions