# Shortest route gives a longer distance

**URL:** <https://ask.openrouteservice.org/t/shortest-route-gives-a-longer-distance/433>\
**Category:** directions\
**Created:** [April 15, 2019, 4:22pm UTC](https://ask.openrouteservice.org/t/shortest-route-gives-a-longer-distance/433 "2019-04-15T16:22:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arbitrax](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@arbitrax](https://ask.openrouteservice.org/u/arbitrax)\
**Post date:** [April 15, 2019, 4:22pm UTC](https://ask.openrouteservice.org/t/shortest-route-gives-a-longer-distance/433/1 "2019-04-15T16:22:42Z")

</div>

Hello,

I’m testing openrouteservice directions for shortest route calculation for pedestrians from one point to another point in order to do some analyzes on the accessibility of bus stops in a next step.

In the following screenshots you can see two routes from one point to another point. Please have a look at the route length (distance) and the choosen preference (shortest and fastest).

When I choose “shortest” route as preference it will give me a longer route.  
I did not set any additional settings.

Is this a bug or are there more things to check when setting the route?

thank you

[Link to the route](https://maps.openrouteservice.org/directions?n1=52.295862&n2=10.539687&n3=17&a=52.296663,10.541832,52.29516,10.540631&b=2&c=1&k1=en-US&k2=km)

 ![image](https://ask.openrouteservice.org/uploads/default/original/1X/0e2a37d9aa396600438ab5e75553cf7952639780.png)

---

<div class="post-metadata">

**Author:** ![adam](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/adam/32/8_2.png) [@adam](https://ask.openrouteservice.org/u/adam)\
**Post date:** [April 16, 2019, 7:15am UTC](https://ask.openrouteservice.org/t/shortest-route-gives-a-longer-distance/433/2 "2019-04-16T07:15:12Z")

</div>

Hi @arbitrax,

yes that is a little strange… we are currently in the process of updating the code behind the pedestrian profiles, and I have just checked locally and it seems that with this new code, both the shortest and fastest are the same (which is as they should be in this case). Hopefully this will be released within the next couple of months and then everything should be fixed.

Regards  
Adam

---

<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:** [April 16, 2019, 10:00am UTC](https://ask.openrouteservice.org/t/shortest-route-gives-a-longer-distance/433/3 "2019-04-16T10:00:18Z")

</div>

Thanks @arbitrax for reporting the problem. We are aware of the issue and have already a fix in place awaiting for the release, see [#239](https://github.com/GIScience/openrouteservice/issues/239).

Cheers,  
Andrzej
