# Possible bug in bearing\_before and bearing\_after after roundabouts?

**URL:** <https://ask.openrouteservice.org/t/possible-bug-in-bearing-before-and-bearing-after-after-roundabouts/2811>\
**Category:** directions\
**Created:** [May 18, 2021, 2:00pm UTC](https://ask.openrouteservice.org/t/possible-bug-in-bearing-before-and-bearing-after-after-roundabouts/2811 "2021-05-18T14:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/stefan/32/1529_2.png) [@Stefan](https://ask.openrouteservice.org/u/Stefan)\
**Post date:** [May 18, 2021, 2:00pm UTC](https://ask.openrouteservice.org/t/possible-bug-in-bearing-before-and-bearing-after-after-roundabouts/2811/1 "2021-05-18T14:00:00Z")

</div>

I’m currently trying to use the bearing\_before and bearing\_after to create a little svg instruction icon. That works really well, except when the instruction is on a roundabout. it seems the bearing\_after is off when an instruction is going across a roundabout. As an example:  
[https://bit.ly/3eTxi1A](https://bit.ly/3eTxi1A)  
this is a short little bit of a route that goes from a highway to a local way, and goes across three roundabouts. The first roundabout, the bearing\_before is 212, which is correct (going southwest, more or less). Taking the third exit is also correct, but then the bearing\_after should be something like 120 - it’s about a 90-degree angle to the left (viewed from the driving position). It is given as 277 however, which is not even 180 degree wrong. The next step then gives as bearing\_before 126, which is actually what I’d expect given this route as the bearing\_after for the previous instruction.

This seems to happen with every (Dutch?) roundabout for as far as I can see. I haven’t checked elsewhere yet. My current workaround is pretty simple, if I encounter a roundabout I use the bearing\_before from the next instruction instead of the bearing\_after of the current point, but that does not always work very well if there is a long twisty road after the roundabout.

---

<div class="post-metadata">

**Author:** ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)\
**Post date:** [May 31, 2021, 3:00pm UTC](https://ask.openrouteservice.org/t/possible-bug-in-bearing-before-and-bearing-after-after-roundabouts/2811/2 "2021-05-31T15:00:08Z")

</div>

Hey,

this is not a bug per se, just a correct but possibly unhelpful response.  
Have a look at [this issue](https://github.com/GIScience/openrouteservice/issues/963) in the backend for an explanation of what is going on.

Best regards
