I would verify that OSRM considers the highway routable at all - if OSRM has excluded it for some reason (e.g. HOV-only, under construction, etc), then it'll be forced to find the next best thing.
Also remember - OSRM is just guessing on the travel speeds based on the tags present on ways in OSM - these guesses may not always be accurate. OTP is making the same guesses, but has different opinions on how to interpret the OSM tags. Google generates a travel speed model from other sources which is more realistic than OSM+OSRM out of the box. Try moving the start/end coordinates around and see if you can confirm that the desired highway is even routable with OSRM. The osrm-frontend project ( https://github.com/Project-OSRM/osrm-frontend/) is handy for doing this. You can also visualize OSRM's view of the routing graph using the debug viewer: https://github.com/Project-OSRM/osrm-frontend/tree/gh-pages/debug (modify index.html to point to your own OSRM server) - if the highways have no coloring, then they're not routable. daniel On Tue, Nov 3, 2020 at 12:48 PM Xavier Prudent <prudentxav...@gmail.com> wrote: > Dear all, > > I am comparing two routing machines: openTriplanner and OSRM on the OSM > map of Québec city (Canada) when looking for the best route by car. > > I get very puzzling differences, just running the default versions and > configurations of OSRM and OTP for these coordinates: > > origin > 46.793187,-71.183014 > destination > 46.770641,-71.285499 > at 8am, mode car. > > The best route by OSRM is a 16km (18min) long, while the OTP > recommandation is a 20km (24min) one. > Google map recommends the 20km one (21min), the 16km road having a > duration of 25 min. > > The 20km route goes along a highway, while the 16km one uses a primary > road, I don't get why OSRM thinks this road is faster, while OTP points the > opposite. > > Are you able to reproduce this discrepancy? Does that make sense to you? > > Thanks, > > Xavier > > -- > > *Xavier Prudent * > > *Data Scientist - Data Mining - Machine Learning* > > Web :* www.xavierprudent.com <http://www.xavierprudent.com>* > Tel (Québec) : (514) 668 76 46 > Skype : xavierprudent > > > > > _______________________________________________ > OSRM-talk mailing list > OSRM-talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/osrm-talk >
_______________________________________________ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk