Closed chaupow closed 1 week ago
penalize ways with public transport (like buses) running on them (and really penalize highspeed or multilane roads)
if tonumber(maxspeed) >= 60
or tonumber(lanes) and tonumber(lanes) >= 2
or public_transport_ways[way:id()]
then
result.backward_rate = result.backward_rate * 0.5;
end
currently public_transport_ways is an array (produced from postgis in a very ugly way) but I will rewrite it to using function https://github.com/FreemapSlovakia/freemap-routing/blob/master/handlers.lua#L4 similarly to https://github.com/FreemapSlovakia/freemap-routing/blob/master/oma-bus.lua#L46
oh I see thanks @MichalPP
could we also use the cycleway tag share_busway
or is that something different?
no, it's when a way is a part of public transport relation. General idea is that it is rather inconvenient/scary with a lot of huge buses around your bicycle.
I've created #5032 which solves a better purpose, but technically it is the same.
I'm a bit worried that penalizing streets with busses will lead to strange detours. Ina city like Copenhagen, the main routes for busses and bike are typically on the same street. This is not considered unsafe.
Interesting. In Berlin buses are scary because you'd have to overtake them from the left when they are stopping and sometimes they'd just start moving without checking for bikes. But your point sounds reasonable.
Right. In Copenhagen there are bike lanes on all streets with significant bike traffic, so you pass on the right side of stopped busses. Example: https://www.google.dk/maps/@55.6626119,12.6023853,3a,75y,260.71h,79.51t/data=!3m6!1e1!3m4!1suiUvBO7RF-VjZkEczql9XQ!2e0!7i13312!8i6656.
In Copenhagen there are bike lanes on all streets with significant bike traffic, so you pass on the right side of stopped busses.
This is awesome. One of the reasons why Copenhagen is just ❤️ ...
Ok. feels like penalizing shared_bus
roads unconditionally doesn't make sense on a global scale 😞
This issue seems to be stale. It will be closed in 30 days if no further activity occurs.
Moving conversation from here
Copying the relevant part of code in here:
lanes and car speed
segregated