Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How does osrm decide when to do U-turn and when not to? #6802

Unanswered
finebytes asked this question in Q&A
Discussion options

I have this route small route
https://map.project-osrm.org/?z=18&center=44.189457%2C28.633198&loc=44.189459%2C28.633756&loc=44.188951%2C28.633938&loc=44.189824%2C28.634067&hl=en&alt=0&srv=0

Which basically means crossing the street, but needs to go further where u-turn is permitted.
And OSRM decides to go around the block.

image

at first you would say it doesn't do U-turns.

But if I slightly change the intermediate point to this:
https://map.project-osrm.org/?z=18&center=44.189457%2C28.633198&loc=44.189459%2C28.633756&loc=44.188613%2C28.634362&loc=44.189824%2C28.634067&hl=en&alt=0&srv=0

it will do a u-turn at the next intersection

image

My question is, why it doesn't do a u-turn at the first intersection?

image

The route would be shorter. I don't understand what prevents it to do a u-turn there.
The first intersection has some additional tags
image

Can you figure out what's preventing the u-turn at that first intersection? Also any way to change settings/profile to make it work? Thanks!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant
Converted from issue

This discussion was converted from issue #6774 on March 04, 2024 23:07.

AltStyle によって変換されたページ (->オリジナル) /