Skip to content
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

Multi-value access tag parsing / Disallow ways with unknown values in access values #6762

Open
flohoff opened this issue Jan 3, 2024 · 2 comments

Comments

@flohoff
Copy link

flohoff commented Jan 3, 2024

Hi,

In car profile we currently dont support multi-value access values e.g. "forrestry;agricultural" which causes OSRM to use all those roads instead of making them inaccessible.

This is caused by a) OSRM not splitting access values, and b) whitelisting all unknown values.

I think both of these decisions need fixing. We should split the access values and process the elements individually, and unknown values should be treated as inaccessible.

Here is a patch against the car profile and the way handler to fix both issues. The restriction positive list is kept in place so delivery, destination and the like are restricted.

Positive list only contains "yes" and "permissive"

bd6a2eb

Flo

@flohoff
Copy link
Author

flohoff commented Jan 3, 2024

Okay - so i brute forced ~500k routes in a county around me and checked for differences between the profiles using
https://github.com/flohoff/routecompare

I found these tag value/combinations which caused differences.

vehicle=designated
access=residents
access=unknown
motor_vehicle=agricultural;forestry
motorcar=designated access=private
access=employees

So i would propose to add "designated" to the positive access tag value whitelist. All others where expected good changes.

Flo

@flohoff
Copy link
Author

flohoff commented Jan 3, 2024

I enabled the patch in my RouteQA. Of ~200K routes in whole of Northrhine-Westfalia i am monitoring right now i had 2 roads which came out of the change in profile.

One was a road where someone confused access:lanes:backward with access:backward
https://www.openstreetmap.org/way/899499339/history

The other was a road containing an motor_vehicle=Trucks prohibited.
https://www.openstreetmap.org/way/52130179/history

Flo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant