osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

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

Open finebytes opened this issue 1 year ago • 0 comments

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!

finebytes avatar Jan 24 '24 09:01 finebytes