Route response contains travel in wrong direction of a one way road

Hi,

In my local server, I am getting a routing response that shows the travel path in the wrong direction of a one-way road. Am i missing something in the config? How does GH know the direction in which travel is permitted on one way roads?
In the below image of routing response, the yellow highlighted path is returned, showing travel in the wrong lane. The correct route to be returned is green highlighted.

Route request:
From: 13.041478,77.609535
To: 13.012535,77.555707

Custom Model:
{
“distance_influence”: 90,
“priority”: [
{ “if”: “rsbikeaccess == NO”, “multiply_by”: “0” }
],
“speed”: [
{ “if”: “true”, “limit_to”: “car_average_speed” }
]
}
Note: rsbikeaccess is an encoded value set to 0 for specific roads which i want to restrict. None of the roads in the vicinity of this route have rsbikeaccess = No (also verified using “show routing graph”

Any help will be much appreciated!

Thanks
Kaushik

You will have to apply the car_access encoded value too. See the car.json

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