New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hiking profile ignores acces=no
#658
Comments
The issue goes rather to me and my Hiking-Poutnik repository, as the Brouter Hiking-Mountain profile is based on my Hiking-Poutnik template. For the specific reported route, it is, similarly as for BRouter original trekking profiles for cycleroutes, (or at least until recently, if changed) , In general: As you can check at Hiking-Poutnik - master - Hiking.brf, there is assigned
As you can see at Brouter-profiles - wiki - Glossary, the Costfactor 9998 is the highest costfactor still allowing passage. It means that e.g. 10 m of such a way is equivalent about 100 km of the way considered as optimal. The rationale behind this is that if there is any other possible way, Brouter avoids an OSM way with such a high costfactor. But, if there is no other way, and if there was not implemented this last option fallback, routing would fail with an error there is no possible way to the destination. There are many scenarios you have good justification to go via such a way anyway. There are often many cases OSM ways are not properly tagged and restricted access does not in reality apply to pedestrians, or it can be justified, Typical cases are "the first mile" and "the last mile". So the decision has been made that the risk of allowing it is lesser harm than the risk of not allowing it. In context of BRouter profiles, there are many such occurrences of decisions that involve weighing of risks and impacts of allowing what should be denied versus denying what should be allowed. |
As work around, it can be changed on BRouter web as custom profile edit (or as a custom profiles in the app) to
The value costfactor=9999 means the respective way segment is not used for routing, but is considered for generation of direction hints. As a variant for aventual profile tweak, there can be defined the variable in the global profile segment like
and in the way profile segment
could be replaced by
With |
Delete or comment out the line 132 (assign nodeaccessgranted...). This parameter overrides the access restriction in this case for hiking routes. |
That is the way to overcome it, but will have regression for the opposite cases, if made as permanent tweak. |
Thanks for the thorough explanation! For dealing with contradictory tagging ("forbidden" hiking route), I would argue that This is different again when tracks and other roads for motor vehicles are involved, as people too often wrongly use |
actually currently it's only tagged as a questionable |
The above tag So, it is an error of interpretation and transcoding of OSM data to BRouter rd5 routing files. Profiles have no idea it is just a proposed route, this info is not available to them. The posted table shows for all route segments available OSM way and node tags/pseudotags. (more exactly - by default only those considered by the used profile, to speed up route calculation. There may be problem in current Brouter data implementation that while cycleroutes do have considered the Quote from the current BRouter lookups.dat
|
It would make sense if access=no would get assigned costfactor 9998, regardless of route status. Route glitches with suppressing occasional access=no may be more needed for cycling. |
The case triggering this issue has been solved, the route was adjusted.
I support this. |
Brouter routes along steps with
access=no
, which it definitely should not:https://brouter.de/brouter-web/#map=18/48.26936/16.33782/standard&lonlats=16.339615,48.269619;16.336176,48.26888&profile=hiking-mountain
Or is there any reason to ignore this (imo very straightforward) restriction?
The text was updated successfully, but these errors were encountered: