valhalla / valhalla/valhalla

Don't Penalize U-Turns at Turning Circles

Open
#4,417 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
6.2k
Forks
981
Avg merge
2d 14h
Merged PRs (30d)
14

Description

Would it be hard to let valhalla use turning circles (`highway=turning_circle`), if they can help saving time?

Here is an example: I'm starting at the marker with the red arrow, facing in the direction of the red arrow. Since it is a dead-end, valhalla will guide until the end of the road, turn around and then drive to my destination, which is the upper marker. For routing on a device this will be confusing, since we are ignoring the turning circle, which probably is better suited to do the turn.
![grafik](https://github.com/valhalla/valhalla/assets/33934221/40f730ba-129a-4660-9b86-51ba2f2e0e15)
Here is the request body of my example:
```
"locations": [
{"lon": 7.00794, "lat": 51.66954, "preferred_side" : "same"},
{"lon": 7.00805, "lat": 51.66998}

],
"costing": "auto"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.