# One-way issue with Leaflet Routing control

**URL:** https://ask.openrouteservice.org/t/one-way-issue-with-leaflet-routing-control/944
**Category:** directions
**Created:** [September 17, 2019, 7:43am UTC](https://ask.openrouteservice.org/t/one-way-issue-with-leaflet-routing-control/944 "2019-09-17T07:43:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dmzone](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/d/dec6dc/32.png) [@dmzone](https://ask.openrouteservice.org/u/dmzone)
#### Post date: [September 17, 2019, 7:43am UTC](https://ask.openrouteservice.org/t/one-way-issue-with-leaflet-routing-control/944/1 "2019-09-17T07:43:46Z")

</div>

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](http://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?

---

<div class="post-metadata">

### Author: ![andrzej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/andrzej/32/10_2.png) [@andrzej](https://ask.openrouteservice.org/u/andrzej)
#### Post date: [September 17, 2019, 7:48am UTC](https://ask.openrouteservice.org/t/one-way-issue-with-leaflet-routing-control/944/2 "2019-09-17T07:48:55Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dmzone](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/d/dec6dc/32.png) [@dmzone](https://ask.openrouteservice.org/u/dmzone)
#### Post date: [September 17, 2019, 3:34pm UTC](https://ask.openrouteservice.org/t/one-way-issue-with-leaflet-routing-control/944/3 "2019-09-17T15:34:41Z")

</div>

Can i publish my API key?

---

<div class="post-metadata">

### Author: ![nils](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/nils/32/6_2.png) [@nils](https://ask.openrouteservice.org/u/nils)
#### Post date: [September 17, 2019, 3:52pm UTC](https://ask.openrouteservice.org/t/one-way-issue-with-leaflet-routing-control/944/4 "2019-09-17T15:52:50Z")

</div>

No need, just do the query on the [maps.ors.org](http://maps.ors.org) and paste the resulting URL here.

---

<div class="post-metadata">

### Author: ![dmzone](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/d/dec6dc/32.png) [@dmzone](https://ask.openrouteservice.org/u/dmzone)
#### Post date: [September 18, 2019, 8:12am UTC](https://ask.openrouteservice.org/t/one-way-issue-with-leaflet-routing-control/944/5 "2019-09-18T08:12:17Z")

</div>

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.
