Skip to content

highway=cycleway + access=no + bicycle=NULL is used for routing #2980

Closed

Description

@zidel

Describe the bug
Cycleways that are tagged as closed with access=no (and no conflicting bicycle=*) are still used for routing, e.g. https://www.openstreetmap.org/way/424854123

Expected behavior
Cycleways with access=no are not used for routing unless there is a bicycle=* or vehicle=* with a positive value

System Information
Tested via openstreetmap.org and graphhopper.com

Screenshots & Logs

https://graphhopper.com/maps/?point=61.459975%2C5.814842&point=61.459033%2C5.827119&profile=bike&layer=Omniscale
https://graphhopper.com/maps/?point=59.911557%2C10.627221&point=59.909744%2C10.625891&profile=bike&layer=Omniscale

Activity

  1. karussell commented on Apr 21, 2024

    @karussell
    Member

    See discussion in #870. Maybe @ratrun can comment on this.

    Anyway, the discussion about the tagging above is valid. I'm going to prepare a change to accept highway=cycleway toghether with vechicle=no. We should allow this for bicyles. Cycleways under construction should be tagged with with highway=construction

  2. bt90 commented on Apr 21, 2024

    @bt90
    Contributor

    Access parsing aside, the road isn't tagged properly IMHO. This should be highway=construction + construction=cycleway as explained in the OSM wiki:

    https://wiki.openstreetmap.org/wiki/Tag:highway%3Dconstruction#How_to_map_the_start_of_a_road_repair_or_reconstruction

  3. ratrun commented on Apr 21, 2024

    @ratrun
    Contributor

    Currently we are treating access=no and vehicle=no the same way with allowing this segment for bicycles. But according to https://wiki.openstreetmap.org/wiki/Tag:access%3Dno the intention of access=no is stronger. While on a segment tagged as vehicle=no it is still possible and legal to dismount and push for access=no this is not the case. So I think that this problem report is valid and we should change it. I'm going to prepare a PR if there aren't any objections.

  4. karussell commented on Apr 21, 2024

    @karussell
    Member

    And should we remove the special case way.hasTag("highway", "cycleway")) in BikeCommonAccessParser? And then consider the "dismount" for vehicle=no in OSMGetOffBikeParser and BikeCommonAverageSpeedParser?

  5. added a commit that references this issue on Apr 21, 2024
  6. ratrun commented on Apr 21, 2024

    @ratrun
    Contributor

    And should we remove the special case way.hasTag("highway", "cycleway"))

    I extended the check there in my first version of the PR, see #2981

    And then consider the "dismount" for vehicle=no in OSMGetOffBikeParser and BikeCommonAverageSpeedParser?

    Yes that is a good idea. I'll try to extend the PR.

  7. bt90 commented on Apr 21, 2024

    @bt90
    Contributor

    And then consider the "dismount" for vehicle=no

    Broadly speaking, we should do this for all cases where foot access is allowed but biking isn't.

  8. karussell commented on Apr 21, 2024

    @karussell
    Member

    Have also thought about this like using foot_access in a custom model as exception when bike_access is false but there are several cases where is does not work like for steps or bad surfaces or a too big hike_rating (sac_scale) etc.

  9. added a commit that references this issue on Jun 14, 2024
  10. ratrun commented on Jun 20, 2024

    @ratrun
    Contributor

    This issue can be closed, the provided examples are working.

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