Barriers / Gates in BRouter / Graphhopper #56
-
|
This isn't really a Cruiser issue, but details a few tweaks I've made to the car-fast.brf BRouter profile in order to make it work a little better for me. I'm in quite a rural part of the UK, there are quite a few cattle-grids and level-crossings. Previously, I had wondered why I'd be taken on a 10-mile detour between 2 Via-Points that were within visual range on the same road. Turns out that BRouter (and GraphHopper) won't take you over a cattle-grid - and, if somebody has been editing OpenStreetMap in their own way: A standard level-crossing with an automatic barrier would also be avoided if there was a "lift_gate" at the location. Similar crossings locally confirm that the element placements are not consistent (the joys of community edits!). I am able to route over a crossing a few miles away. Meh. The BRouter mod is as follows: I don't know much about the map tags, so am not sure what else a "gate" would mean in other places, perhaps an actual physical barrier/gate for cycle/pedestrian access only? Who knows - but it certainly applies to at least 5 cattle-grids that I've got on some of my routes. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 24 replies
-
|
Here's an example that I found within Cruiser Desktop. The routing is fine via online BRouter and OpenRouteService, but fails miserably using offline GraphHopper - it tries to take me down a footpath which then becomes a road (and back the same way) despite "Car" being selected. BRouter/OpenRouteService Route: The following objects appear to be the issue (they are cattle-grids): It's clearly a routing issue but hopefully provides some insight into why things happen and how to avoid them - or, in my case, be able to ride over them :) |
Beta Was this translation helpful? Give feedback.
-
|
@MotoUKRider thanks for these examples and the BRouter profile instructions! 👍 |
Beta Was this translation helpful? Give feedback.
-
|
Your contributions regarding BRouter profiles optimised for the motorcyclist target group are valuable. Also know that BRouter is mainly aimed at cyclists and hikers. Thus, optimal motorbike profiles have been neglected anyway. However, your contributions in the Cruiser forum will probably be lost too soon anyway. Since you are pretty good with profile building anyway, perhaps you could share your ideas and experience regarding a better motorbike router profile in Brouter github. Good luck. Translated with www.DeepL.com/Translator (free version) |
Beta Was this translation helpful? Give feedback.
-
|
More investigations - I'm afraid that Graphhopper, in the UK at least, is a bit rubbish! The presence of these cattle-grids and those types of "barrier" level-crossings make it impossible to route a car or motorcycle profile through them. There must be examples like this within Europe that pose similar hurdles? Even BRouter in its default "carfast" configuration has this problem, hence my custom profile (details in 1st post). The use of It's my opinion that Graphhopper is routing incorrectly: Preventing vehicles from passing through "barriers". I've checked a few local ones and the "access" tag isn't present. I took a read of OSM Access Tags and ended up in a corn maze! There appear to be all kinds of variables for access: Time, vehicle type etc and whatever implied rights you have based on the Country you're in. Anywhere there is farm land and/or level-crossings on your route may cause Graphhopper routing to do all kinds of interesting things. This isn't Cruiser's fault, of course, but it does pose a problem in the above scenario - and worth considering especially as Graphhopper is "built-in" and possibly the go-to routing method for offline use. If it's possible for Cruiser to tell the routing engine what kind of road/ferry/gate/toll are avoidances/preferences then it may be possible to create better "Car" and "Motorcycle" profiles (plus custom ones) where you can avoid whatever attributes/roads/tags are on offer. Or is it just me?! |
Beta Was this translation helpful? Give feedback.
-
|
@0709wiwiwi @MotoUKRider |
Beta Was this translation helpful? Give feedback.
-
I try your 2 examples on BRouter website with car profiles and they work. |
Beta Was this translation helpful? Give feedback.
-
|
@MotoUKRider about your report in GraphHopper: Testing your example:
|
Beta Was this translation helpful? Give feedback.
-
|
@afischerdev suggested to include the BRouter .brf profiles inside Cruiser. Then I can add a switch in Cruiser settings to turn on/off barriers, gates, ... Has anyone experience with the use of such global variables in BRouter? |
Beta Was this translation helpful? Give feedback.
-
Ignore barriers in GraphHopper (offline) is possible, stay tuned for the next version! Ignore barriers in BRouter (offline) will be handled separately: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Wow, it was over 2 years ago that we had "fun" with cattle-grids in the routing engines... This week, I was finally able to visit the offending road feature further up this thread during my trip into Scotland. I present the Mennock Pass cattle-grid before I rode across it singing: "nerr-nerr-na-nerr-nerrrr" From here the road leads up to Wanlockhead, the highest village in Scotland (466m) and I can assure you the views are not 'arf bad! |
Beta Was this translation helpful? Give feedback.





@MotoUKRider
GraphHopper (offline) routing data have all been recreated.