I’m trying to build a route using Directions API, but it seems there is a bug in the routing algorithm. Here is the route.
As you can see, there is a main highway, but for some reason it’s ignored and instead the secondary road is used for the route. I’ve checked OpenStreetMap data for any kind of restrictions, but there are none.
I’m wondering, maybe the turn restriction’s attributes are wrong. It looks correct for me. Both the main highway and the secondary road are available for turn at this point. Why does GraphHopper ignore the main highway in this case?