-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Respect access=destination #156
Comments
... where 'street' may be a chain of accordingly tagged ways. |
Yes, single segments, multiple segments, chained/unchained. You name it ;-) |
| | a | | | | x | b | i | h | | | c | | g | | | d | e | f | With ways ab <access=dest> When i route from d to a: use bcd,ab or defghibx, ab? ab,bcd is chained according to <access=dest>. But it may be unchained according to |
i think it should use bcd,ab. you're starting at d, which is on bcd, so you're allowed to move on bcd. you're ending on a, which is on ab, so no problem moving on a. i'm not sure there's any need to consider strings of ways. |
maybe i have to be more clear: think of d being part of an crossing. Then 'd' is that crossing and therefore i would not say "i am allready on bcd"... This situation is a bit ambigous for me...
i agree. |
ways are defined by the nodes they pass. so i'm not sure i follow you - how is d not on the way bcd? |
| | c | | | m | d | e | | | n | | Ways: Being on point d does not mean to be on one of these ways. Otherwise it would mean to be on all 4 ways at the same time. Starting a route at point d should be ok, even if 'dc' is 'private'. The state of a way only affects if you are going through that way. It does not matter if you only 'touch' a single point of it. I am talking about way attributes. Node attributes are different (e.g. bollard). Now look at the scenario in my previous post: ab,bcd is one street in terms of the access state. So one can argue that it is ok to move through bcd to go to 'a' because it's all the same street. (ab,bcd could be 'primary' while xbi is 'secondary'). chained way segments But the context could be different: Assume xbi is primary and both bcd and ab are secondary. In this situation i would say there are two different zones. If the target is within one of them it is ok to go there, but it is not ok to go through the other. |
Good news! I have already a prototype of this feature running on my machine. |
nice! remember you can use branches here on github if you like to show experimental stuff and discuss it |
Hi! I'm just curious when these tags (especially the vehicle=destination tags for me) will be supported for routing. As you said you have a prototype running already I'm hoping for the best... I love the speed of OSRM, please never stop working on it! |
Work is still not yet finished for this feature as there are some special cases which need special treatment. The feature will be merged into the master branch once it is more mature. |
I used Dennis' hack in line 316-317 in |
This Feature would be great! 👍 We used a version which @pa5cal made for as at synyx with the fix in it. But i would be very good if this would be a real feature in osrm :) |
The hack is still available somewhere ? |
@frodrigo the hack was to modify the mentioned EdgeBasedGraphFactory.cpp in line 316-317 with:
|
Hi, @DennisOSRM Can we document the special cases so we can come up with a proper solution? Thanks! |
@marcioaguiar The proper solution is to implement #77, which would allows us to put arbitrary penalties on |
Great! Thanks for the feedback, @danpat |
Now in version 5.1.0 ? :-/ It feels like this is one of the most missing feature...maybe we can support you to get this done faster? We really need this feature. |
@derTobsch A patch that implements #77 would make this possible 😄 |
would you accept such a patch? it will increase ram usage |
@emiltin Maybe someone will come up with a clever way to do it that doesn't use extra memory :-) But seriously, if someone writes the patch, we can certainly make it a compile-time option, so it has no effect unless it's enabled. |
Still routing through vehicle=destination 😟 |
Yes, OSRM does not respect the destination access in the default profiles and on the demo server see Line 32 in e0a1a43
You're free to adapt the profile and run your own server if you want to avoid routing over it. Check out this pull request for how we will handle it in the future. |
Now that #77 is closed, we can finally tackle this. We can now update the
Ideally these would be implemented as penalties on turns accessing these types of ways, but our We can, however, add weight to these road types, which will have a similar effect (it may fall down in some circumstances when weights are high and coordinates are dropped near edges of weighted areas). I'd like to include this with 5.6.0 as the major rollout feature. |
hope you get a chance to consider merging #3615 (factoring out common profile code to helper file) before working on using the weights to avoid access=destination. |
Feature request: Don't route through streets with access=destination tag set, if start and/or target do not lie on them.
The text was updated successfully, but these errors were encountered: