How can I change route , if I khow, that there is shortest one

asked 27 Nov, 09:31

tania%20shibko's gravatar image

tania shibko
112
accept rate: 0%

edited 27 Nov, 09:37

Can you show us an example? Please paste the URL of the route from your browser.

(27 Nov, 09:50) scai ♦

where do you want to change the route: on openstreetmap.org ? can you post a link of that route (copy the URL shown in the browser when the route is displayed). We can then investigate why that router thinks there is no shorter route

(27 Nov, 09:50) escada

I expect that you would want a route that goes like https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=53.8763%2C27.5956%3B53.8853%2C27.5420 However, this https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=53.8754%2C27.5974%3B53.8853%2C27.5420 shows that the distance is approx. the same Or is there another, shorter route that I miss

(27 Nov, 10:17) escada
2

but this https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=53.8665%2C27.6208%3B53.8766%2C27.6054 is already 2.8, the same as the second one you give. So the original route is shorter. while this is shorter https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=53.8659%2C27.6207%3B53.8769%2C27.5983, a little bit further, its time is the same as the original route.

The differences are really small, and the time to travel is probably more impacted by the traffic signals or junctions you have to cross than by the actual distance you have to travel.

BTW, Graphhopper (Car) is using the route you suggest and while it is 400m shorter, it takes 3 minutes longer. (play with the drop down with "OSRM" on it). So it's more in the algorithms than in the OSM data.

(27 Nov, 12:11) escada

So сan't I change it and to choose another with OSRM ?

(27 Nov, 12:29) tania shibko

Not with the OSRM functionality offered on osm.org The functionality offered on the website is just basic. It allows mapper to see whether there are mapping errors (which is not the case here IMHO) Out-of-curiosity, why is switching to Graphhopper, not a valid alternative?

For real-world routing, I recommend you install an app on your phone, or use an OSM-map on a GPS-device. Or you can try the OSRM website which offers more functionality

(27 Nov, 13:01) escada

Thank you for your explanation.

(27 Nov, 13:05) tania shibko
showing 5 of 9 show 4 more comments

The conclusion from the discussion in the comments as answer.

While OSRM does not follow the shortest route as expected by the OP, Graphhopper does. The difference is time and distance are small (OSRM being the fastest by 3 min, Graphopper the shortest by 400m). So the data seems correct.

The functionality offered by the routers on openstreetmap.org is limited, so it is not possible to change routes. The goal of the routing functionality is to detect mapping errors, not providing a full-fledge navigation aid. Therefore one has to use specialized websites, dedicated apps or GPS devices with OSM map.s

permanent link

answered 28 Nov, 04:17

escada's gravatar image

escada
17.8k16153283
accept rate: 21%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×140
×5

question asked: 27 Nov, 09:31

question was seen: 123 times

last updated: 28 Nov, 04:17

powered by OSQA