abrensch / brouter

configurable OSM offline router with elevation awareness, Java + Android
MIT License
490 stars 118 forks source link

right distances, wrong times #564

Closed ajay-gh closed 1 year ago

ajay-gh commented 1 year ago

A few days ago I have updated the app (under Android 8), and the relevant router files.Next went on a vacation and wanted to use Locu Map and brouter for offline routing. To my surprise any routing I do (here in south-west France) provides valid routes and the correct distances, but the resulting times for the proposed route are 2x longer then one would expect. A few test routes along a 100km long straight stretch of national road (departmental, no villages, no intersections, etc.) always show the same results, the router suggests that it is going to take over 2h to drive down 90km of road (speed limit on such highways). As I am not aware of a way to set (different, odd) speed limits in Locus or in brouter, I have to believe it is a bug.

afischerdev commented 1 year ago

I made a test with this sample on BRouter-Web

original_brf

It has the expected result.

Locus uses its own profiles. When I use this in BRouter-Web I get the result you are talking about.

locus_brf

ajay-gh commented 1 year ago

I am sorry, but I am not familiar enough with the profiles in Locus. As far as I can see I can select a profile *walk, car, bike ...) and I can change whether motorways or unpaved are allowed or not, but that is it. No speed parameters. And a quick search in the Locus docs did not help. I do understand it's a Locus problem, not a brouter problem. But ... could you still show me where I find the profiles in the Locus directories and a word or two which parameters to edit in order to get the results in your first picture ? Thanks !!

afischerdev commented 1 year ago

I didn't find a profile in folder. Could be intern.

I do understand it's a Locus problem

Yes, I think so. I've cross checked with the older BRouter version, same wrong result.