Busway with allowed cycling

With custom bike profile, routing with bike is not possible on this busway. How can I make an exception or raised priority?

tag bicycle is yes, highway is busway

My custom bike profile,

- name: bike
  custom_model: {
    priority: [
      { if: "bike_access",  multiply_by: "bike_priority" },
      { if: "!bike_access && (!backward_bike_access || roundabout)",  multiply_by: "0" },
      { else_if: "!bike_access && backward_bike_access",  multiply_by: "0.2" }
    ],
    "speed": [
      { if: "bike_access", limit_to: "bike_average_speed" },
      { if: "!bike_access && backward_bike_access && !roundabout", limit_to: "5" }
    ]
  }

Kind regards,

Peter

As soon as you have bicycle=yes it should be accessible for bike also on highway=busway (you can see that our graphhopper bike profile happily routes over it). Did you do any further modification not shown? Which GraphHopper version are you using?

Or do you mean it should prefer the busway over the cycleway on the other side?

Hi Karussell, it looks like it avoids the bus lane. GraphHopper Maps | Route Planner The red line is for busses where bikes are allowed. I use the latest Graphhopper version ( 10.2 )
No other modifications, just the config. I wish the routing on the busway is accessible for bike

The config was outdated, exchanged to;

    - name: bike
      custom_model: {
        "priority": [
          { "if": "true",  "multiply_by": "bike_priority" },
          { "if": "mtb_rating > 2",  "multiply_by": "0" },
          { "if": "hike_rating > 1",  "multiply_by": "0" },
          { "if": "!bike_access && (!backward_bike_access || roundabout)",  "multiply_by": "0" },
          { "else_if": "!bike_access && backward_bike_access",  "multiply_by": "0.2" }
        ],
        "speed": [
          { "if": "true", "limit_to": "bike_average_speed" },
          { "if": "!bike_access && backward_bike_access", "limit_to": "5" }
        ]
      }

but still no routing on the highway=busway. Enum BUSWAY is also removed in version 10.2…

it looks like it avoids the bus lane

It does consider busway (and it is accessible!), but it prefers the cycleway. Why should it not?

Enum BUSWAY is also removed in version 10.2…

No, it was added recently and is not yet in any release. But I don’t think you need it.

What exactly is your intention?

My intention is to draw a restriction because of work on the road on this particular bus way and not on the adjacent footpath Way: 475482535 | OpenStreetMap How can I prioritize the bus way over the footpath or cycle way for that matter?

Looks like this line interferes with the routing { “if”: “!bike_access && (!backward_bike_access || roundabout)”, “multiply_by”: “0” }, without it no problem.

How can I distinguish between bus ways where cyclist can drive or not. In osm there are tags bicycle or highway Way: ‪Boulevard Barnaart‬ (‪475472643‬) | OpenStreetMap ? Checking on ‘bike_access’ is not enough, either cyclist can always drive on a bus way or not. In this bus way, cyclists should not be allowed to drive there Way: ‪Zuidtangent‬ (‪799417946‬) | OpenStreetMap

Graphhopper doens’t route also over the lane with dotted blue dots, why is that? GraphHopper Maps | Route Planner

@karussell should a file a bug?

I think this is a mapping mistake.

See Tag:highway=busway - OpenStreetMap Wiki

Busways are not meant to be used by motorists, pedestrians, or cyclists.