Skip to content

Bike routing prefers detour without cycleway #2784

Closed

Activity

  1. bt90 commented on Mar 31, 2023

    @bt90
    ContributorAuthor

    Screenshot_20230331-165937

  2. bt90 commented on Mar 31, 2023

    @bt90
    ContributorAuthor

    Looks like we already evaluate the cycleway tag but assign a rather low priority for lane:

    String cycleway = way.getFirstPriorityTag(Arrays.asList("cycleway", "cycleway:left", "cycleway:right"));
    if (Arrays.asList("lane", "shared_lane", "share_busway", "shoulder").contains(cycleway)) {
    weightToPrioMap.put(100d, UNCHANGED.getValue());
    } else if ("track".equals(cycleway)) {
    weightToPrioMap.put(100d, PREFER.getValue());
    }

    According to the OSM wiki cycleway=lane implies bicycle=designated so we should give it a higher priority:

    Note that in many cases it is not necessary to tag it explicitly as it is implied by highway=cycleway or tags such as cycleway:both=lane

    And a few smaller observations:

  3. added a commit that references this issue on Apr 3, 2023
    ca9b038
  4. added a commit that references this issue on Jun 21, 2023
    b3825b7
  5. added a commit that references this issue on Oct 27, 2023
    7a0960e
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions