Closed Moerri closed 4 years ago
I have found the problem ;-) I mixed up long/lat coordinates when downloading the map for the server, as well as when calculating travel times with R... I was therefore moving around in Somalia instead of Switzerland... I will embarrassedly close this issue ;-).
I get quite biased travel times with osrmTable, using both the osrm demo server and my own server (covering Switzerland). The demo example, on the demo server:
results in:
And I use the following two points in Switzerland to test the function osrmTable:
results in:
The actual travel time between these two points (estimated on map.project-osrm.org) would be around 24 minutes. I get the exact same, but wrong results with the demo server and my own server. I use
options(osrm.profile = "driving")
. On my server, I use the car.lua driving profile (https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua). I assume the osrm demo server uses the same. I also tried the osrmTable on other coordinates in the Swiss canton of Glarus - these results also do not look plausible. What strikes me are the quite different coordinates of source and destination in the results of osrmTable above, in both examples. But even when using these, I get a travel time of 43 minutes (for the Swiss example), not 148. Can anyone help me on with this issue? My first guesses would be that problems are caused by the car.lua driving profile (I have plotted the result of osrmRoute between Schaffhausen and Winterthur, and it sadly looks like a large, unnecessary detour), and/or by how source and destination are set in the map. Any other guesses?Thank you in advance!