Open MathiasVersichele opened 3 years ago
Conditional access tags are currently not supported. See #4231 for previous discussion. So the condition is being ignored, but OSRM doesn't process any other tags that grant bicycle access.
If you wanted to handle this in the Lua script, you could update the access hierarchy to include the bicycle:conditional
key and then check the access condition value is something you're ok with.
i have a similar question. suppose I live in Milan (italy) and traveling by bike I want to avoid at all costs roads with the tag surface=milanese_paving
or surface=cobblestone
or surface=cobblestone:flattened
like tagged here
is it a terrible hack to just decrease their surface_speed
to a very low number here?
thanks
I'm not too familiar with the bicycle profile, but it looks like there is an example of making roads with zero speed inaccessible.
I've had a similar problem. I've been using OSRM to 'lock' some bicycle GPX tracks to OSM ways. This works fine for the majority of ways - but it fails to match ways labeled as 'trunk' (in the UK). The image above shows a track locked to the OSM ways except for where it joins the A377 trunk road. If I use the car.lua file it fits correctly. I've modified the bicycle.lua file and added entries for 'trunk' which match the existing 'primary' and 'secondary' ones - but OSRM still fails to match the trunk route. Any idea what I might be doing wrong?
Hi KirbyJames with regard to your problem I have a Pull request open (#PR6703) that addresses the "trunk" issue. Some countries allow bicycle access on trunk roads (including GBR). it might be more than you want https://github.com/Project-OSRM/osrm-backend/pull/6703
I'm seeing that the following road doesn't allow routing with the bicycle.lua profile:
https://www.openstreetmap.org/way/23012499
I'm guessing it's related to the "bicycle:conditional" tag ? How can I adapt the lua profile to ignore these temporal restrictions ? Thx!