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
Routing through bollard with opening_hours #5480
Comments
The routing engine of OsmAnd does not yet support opening hours on drivable objects or barriers. |
so would you agree with tagging this "Nice to have"? |
Sure, it would be great to have the feature. |
this bollard could eventually be removed soon, so the route for reproduction will no longer work in the future. |
This is definitely "nice to have" and I believe it is a duplicate of another issue |
Just to add support for this, here is a gate that is closed during certain hours, but open to vehicular traffic the rest of the time: Routing through that point shouldn't be allowed when the gate is closed. |
Rather than using |
The wiki link I originally referred to included a hint that you might want to consider using opening_hours in an application. I think it makes more sense standardizing on that than having conditional fields changing the access "who can pass" from vehicles to none at given times. https://wiki.openstreetmap.org/wiki/Conditional_restrictions the syntax looks rather heavy and only really suited for navigation here imo, though OpenStreetMaps is for much more than just navigation so it's not feasible for everyone to implement it. |
Version: OsmAnd 2.9.3 (2018-02-08) with Ultimate upgrade and OsmAnd Live, downloaded maps & live enabled
OsmAnd routing (no avoiding checkboxes, can't tell if offline)
Routing profile: car, fastest
How to reproduce:
Route from lat 50.59577, lon 8.67692 (Egerländer Straße (Nordstadt), Gießen) to lat 50.59462, lon 8.67633 (Asterweg, Gießen) between 08:00-19:00.
Observe that it won't route the obvious direct path, but rather routes a long indirection. I haven't tried this outside that time yet but if the same happens there it is correct behavior on these times.
The direct route has a node
barrier=bollard
,bollard=rising
,opening_hours=08:00-19:00
(opening_hours should probably only be interpreted with a rising bollard and not with general barriers https://wiki.openstreetmap.org/wiki/Key:bollard)Going from top right on this screenshot to bottom left, circle is bollard:
I don't know if this happens because my map is too old? The change to this bollard is around a week old and I don't know another one to test. The Interface doesn't show any details of the bollard at all when clicking it, editing it does not seem possible using the edit plugin either.
The text was updated successfully, but these errors were encountered: