Hi, I use this snippet mentioned in earlier threads,
Without road_class OTHER, routing is not done on below buslane,
highway is BUSWAY should there also be a similar road_class?
- name: bus
custom_model: {
"distance_influence": 90,
"priority": [
{ "if": "bus_access && (road_class == OTHER || road_class == MOTORWAY || road_class == TRUNK || road_class == PRIMARY || road_class == SECONDARY || road_class == TERTIARY || road_class == UNCLASSIFIED || road_class == LIVING_STREET || road_class == RESIDENTIAL || road_class == SERVICE || road_class == ROAD)",
"multiply_by": "1"
},
{ "else": "", "multiply_by": "0" }
],
"speed": [
{ "if": "bus_access && car_average_speed < 10", "limit_to": "10" },
{ "else": "", "limit_to": "car_average_speed * 0.9" },
{ "if": "true", "limit_to": "100" }
]
}
Kind regards,
Peter