-
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
should not fork slight left when road goes straight #2527
Comments
Usually forks are analysed for major/minor roads. So far guidance work is targeted at roads only. The addition of the footpath here introduces an unknown priority of roads that is obviously not handled correctly, yet. This is related to #2113 and is already on the list. |
ok |
nice! |
looking at the updated profile i see there's a new function setClassification(highway, result). i'm not sure exactly how this works, but having only the highway tag is probably not going to be enough since routability depends on a number of tags. for example, a highway=runway IS routable if you have car=yes or bicycle=yes. i'm also wondering about the two directions. for bikes, a way can have different modes for each direction (cycling, pushing_bike) - won't this affect classification/guidance? |
@emiltin the setClassification is a default way of how you may choose to handle stuff. You have the possibility to ignore roads (may_be_ignored flag) and you can set road-categories from a set of types. Since guidance is changing quite a lot at the moment, its kind of hard to describe the implications of different flags/categories. You can have a look at the lib (lib/guidance.lua) to see what is currently set. Edit: Regarding the two different modes - this is definitely correct and we will have to update our behaviour here at some point. The first goal at this point is to reproduce our current behaviour with the possibility to offer configuration at profile level, not at compile level. |
@emiltin I've added some (minor) documentation on the configuration in my PR. Keep in mind that these configurations most likely will have to change when we focus on improving bicycle and walking guidance. |
alright, thanks |
With #2586 reviewed and waiting on merge, this issue is resolved (at merge, of course). |
osrm emits a fork left instruction when the way continues straight ahead (same bearing before/after).
it should probably suppress the instruction (if the forking road is minor) or tell you to go straight at the fork.
situation:
![screen shot 2016-06-10 at 13 51 06](https://cloud.githubusercontent.com/assets/66034/15963455/78b71b04-2f12-11e6-9e40-fcf96f214234.png)
response:
using latest from master
The text was updated successfully, but these errors were encountered: