One-way issue with Leaflet Routing control


#1

I’m in a Leaflet Routing control with an Openrouteservice router.
When i build the route i get the directions without respecting one-way streets.
If i set the same path directly in maps.openrouteservice.org i get the right directions.

Params
instructions: true
instructions_format: text
geometry_format: geojson
preference: recommended
units: m
profile: driving-car
attributes: detourfactor|percentage

Any thoughts?


#2

Thank you for your inquiry. Could you please provide an example query illustrating the issue? Thanks!


#3

Can i publish my API key?


#4

No need, just do the query on the maps.ors.org and paste the resulting URL here.


#5

I found the error comparing the 2 web addresses.
I was focused on parameters but the issue was related to the coordinates: the waypoints were swapped , that’s why the one-way street was in the driving path.
A trivial error kept hidden by the lack of something signaling the direction in the line path.
Thanx for your time.