-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Support Left-Sided Driving #2269
Comments
@MoKob Can you list some specific examples? |
In general, when I noticed it during coding, I labeled the locations with |
In the case of the roundabout handler above, what would be broken? For example, would the guidance just say "turn right out of the traffic circle" instead of "turn left out of the traffic circle"? |
@willwhite the count for intersections is wrong in some cases. it may say take the first instead of the second. The angles themselves are independent of the side of driving. |
related: #333 |
I am not aware of many situations that actually change in left-sided conditions. We already have some roundabout-handling based on profile flags. This would need to be implemented on a Turn lane handling for roundabouts assumes right-sided driving. We currently have them disabled anyhow, though. When we redo them to work at all, we should take left-sided driving into account. With this flag, we would also be able to switch to a |
Lane Anticipation:
and I came across a few comments sprinkled throughout the code base a while ago osrm-backend/src/extractor/guidance/intersection_normalizer.cpp Lines 259 to 260 in 288155e
|
This is a massive issue for left-side driving countries (of which there are a lot!). I'm trying to use the Perhaps |
@cmhh OSRM now has basic support driving side. The demoserver calculates driving side during pre-processing and returns it with routing results. If you're running your own OSRM server, you'll need to add the As noted above, there are probably still some corner cases around guidance, but the If you're seeing a specific problem, please open a new ticket with a recipe to reproduce the data you're using, a sample query, the results you're seeing, and the results you expect. |
Great! I was looking down the barrel at doing this with ArcMap's Network Analyst (yuck), or implementing something bespoke myself. I made a Docker image with this flag set and it seems to be working pretty well. Thanks heaps. |
I've been trying to enable the above mention support for driving side on our OSRM service using the
I'm using docker to process the osrm files and run the routing engine. Commands I use are below. II'm using the latest docker builder (image id: d45a54a4bc52)
The only way I could get driving_side to be left is to change the Any help would be greatly appreciated. |
Looks like Try adding |
That's it. That fixed the problem for me. Thanks again for the super fast response @danpat . |
If you have time, a PR fixing the file in the repo would be appreciated! |
I don't have permissions is to push a branch. Do I need to do this on a fork @danpat ? |
This requires OSRM to be country aware.
At the moment, we only support right-handed driving per default and assume it to be the general mode of driving.
This can result in broken instruction handling in left-handed driving countries.
When we get some sort of country-awareness into OSRM, we need to have a look at guidance and make sure to address left-handed driving.
The text was updated successfully, but these errors were encountered: