Set to left side driving

Hi, I’m trying the open source routing engine. It works amazing, until I found this problem:

GH routed it to the right lane. How do I instruct GH to use left lane driving?

rgds,
Antony

just checked some locations in Indonesia and it works as expected

Thanks… Then I assume, that GH automatically detect driving lane from loaded osm?
I need to check other sides from my code… :slight_smile:

Thanks for the prompt reply :+1: :+1: :+1:

It does not detect whether or not you are in a country driving on the left/right side of the street, but it does detect one-way roads. In your screenshot you can see arrows indicating the direction of the lanes. Can you share the coordinates of this route?

I don’t have them anymore, they were just random points I put to try the routing.
I tried some more and I suspect the problem lies with some part of my UI code.
I overlay the routed path on my map, and use Iván Sánchez Ortega / Leaflet.Path.DashFlow · GitLab to animate the polygon to show the path flow. It seems the animation is backward… haha

Thanks for your help!!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.