You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we completely remove small subnetworks in order to avoid failures when routing (as two disconnected areas won't have a path in between). Those subnetworks exists due to OSM errors or other things (?)
But the barriers can introduce further subnetworks (example). The problem is that only a subset of the allowed vehicles could be affected by those barriers. E.g. barrier=bollard limits cars but not pedestrians. Which means only for cars the disconnected subnetwork exists.
In order to fix that one needs to identify all subnetworks (per vehicle) and restrict access (setting both direction flags to 0). Now, if all allowed vehicles have the same restriction for one edge one can safely remove this edge.
Make this process working for the one way network removal (tarjan algorithm) too
Another subnetwork issue I found (and have no idea how to deal with) is a oneway that has no entry for bicycles / pedestrians (could be connected to a motorway).
What could be used as a workaround to allow bike,foot vehicles but also use the prepare.minOnewayNetworkSize=200 and prepare.minNetworkSize=100 setting?
Do I need to prepare one graph for every vehicle with these settings and run them on a different port?
Yes, as a workaround something like this would necessary and would be probably the easiest to setup. Or use one JVM with multiple GraphHopper instances.
The best way of course would be to fix the issue :)
Activity
fixing the subnetwork problem partially for single vehicles #86
karussell commentedon Sep 24, 2013
It was reported that 3000 is too aggressive: https://lists.openstreetmap.org/pipermail/graphhopper/2013-September/000414.html
lowered minSubnetwork to 400 because of #86
jtheuer commentedon May 27, 2014
Another subnetwork issue I found (and have no idea how to deal with) is a oneway that has no entry for bicycles / pedestrians (could be connected to a motorway).
karussell commentedon May 27, 2014
Do you have a link? As normally if those streets are not accessible by pedestrian they won't be included. Or are you using multiple vehicles?
karussell commentedon May 27, 2014
Also see the answer here: https://lists.openstreetmap.org/pipermail/graphhopper/2014-May/000960.html
jtheuer commentedon May 27, 2014
Correct oneway example does not apply to pedestrians, it obviously only affects bicycles:
The target is not accessible in this direction:
http://graphhopper.com/maps/?point=52.50354%2C13.278437&point=52.502084%2C13.280829&vehicle=bike2&elevation=true
Partial fix for graphhopper#86 Barriers lead to disconnected areas - …
graphhopper#86 implement a correct algorithm
Revert "Partial fix for graphhopper#86 Barriers lead to disconnected …
Revert "Partial fix for graphhopper#86 Barriers lead to disconnected …
Partial fix for graphhopper#86 Barriers lead to disconnected areas - …
merged pull #226 which is a partial fix for #86 removing disconnected…
karussell commentedon Jul 10, 2014
Partial fix for oneway is #226 or the newer solution in #235 via tartjan algorithm, which has only one traversal.
Svantulden commentedon Feb 11, 2015
What could be used as a workaround to allow bike,foot vehicles but also use the
prepare.minOnewayNetworkSize=200andprepare.minNetworkSize=100setting?Do I need to prepare one graph for every vehicle with these settings and run them on a different port?
karussell commentedon Feb 11, 2015
Yes, as a workaround something like this would necessary and would be probably the easiest to setup. Or use one JVM with multiple GraphHopper instances.
The best way of course would be to fix the issue :)
karussell commentedon Aug 4, 2015
Fixed and merged in #487
make it possible to translate strings aka i18n (graphhopper#86)