Hi,
I am having some trouble with routing through Ped zone where the Buses are allowed to route based on the tag bus=yes in OpenStreetMaps.
I am using ‘roads’ as vehicle type and ‘BUS,car’ as transportation mode.
This is what I have in my custom model for bus:
“priority”: [
{
“if”: “bus != YES && car_access == false”,
“multiply_by”: 0
},
{
“else_if”: "bus == YES,
“multiply_by”: 0.9
}
]
Unfortunately it does not work, and it can’t route through the ped_zone. Am I doing something wrong here? Please help.
Hi,
is there any update on this issue?
I have tried routing on other streets too, where highway=pedestrian and bus=yes are set, but it still does not route through these streets.
What exactly does not work? This custom model rule “if”: “bus != YES && car_access == false”, should give an error, because there is no bus encoded value (?), or did you modify the Java code accordingly?
But then I am unable to route on the streets which have tags highway=pedestrian and bus=yes. My Bus Profile should be able to route through the pedestrian zone, where the buses have permission because of the bus=yes tag in OSM.
Does graphhopper-7.0 support this?
My custom model looks like this:
{
“distance_influence”: 90,
“speed”: [
{
“if”: “true”,
“limit_to”: “car_average_speed * 0.9”
},
{
“if”: “true”,
“limit_to”: “120”
}
],
“priority”: [
Try enabling the ‘Show Routing Graph’ option in the Web UIs layer menu. You can then hover the roads in question to see all the encoded values. Maybe from this you can figure out if and why they are still not accessible. If you are unsure maybe paste the encoded values here.
If there is just a gate, bollard etc. it should be possible to create a short route on the road by moving the markers very close to each other. This way you can exclude such gates as the cause of the issue.
Ok, I’m just saying for debugging it would probably help to use the UI in the way I described it. Using the Java API only you could also try to get hold of the single edges, inspect the encoded values and debug the weighting of course.