Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zidel opened this issue Apr 21, 2024 · 7 comments
Open

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

zidel opened this issue Apr 21, 2024 · 7 comments

Comments

@zidel
Copy link

zidel commented Apr 21, 2024

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

@karussell
Copy link
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

@bt90
Copy link
Contributor

bt90 commented Apr 21, 2024

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

@ratrun
Copy link
Contributor

ratrun commented Apr 21, 2024

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.

@karussell
Copy link
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?

ratrun added a commit to ratrun/biketourplanner that referenced this issue Apr 21, 2024
@ratrun
Copy link
Contributor

ratrun commented Apr 21, 2024

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.

@bt90
Copy link
Contributor

bt90 commented Apr 21, 2024

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.

@karussell
Copy link
Member

karussell commented Apr 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants