How can I change route , if I khow, that there is shortest one asked 27 Nov '19, 09:31 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 answered 28 Nov '19, 04:17 escada |
Can you show us an example? Please paste the URL of the route from your browser.
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
https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=53.8659%2C27.6207%3B53.8853%2C27.5420#map=14/53.8723/27.6189&layers=N
I want to change the route: on openstreetmap.org
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
We have the problem with the first part of route, I told about this https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=53.8659%2C27.6207%3B53.8786%2C27.6101 instead https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=53.8659%2C27.6207%3B53.8755%2C27.5966
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.
So сan't I change it and to choose another with OSRM ?
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
Thank you for your explanation.