Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.36k stars 3.37k forks source link

Tune Bicycle Penalties / Preferences #4237

Open MoKob opened 7 years ago

MoKob commented 7 years ago

We have a lot of mechanics in place by now that allow fine tuning the bicycle profile to prefer certain types of roads. The big difficulty I see here is that bike riding seems to depend a lot more on personal preferences than going by car.

Given the amount of feedback we have received over the year, it could be a good time to revisit how we define our preferences in the bike profiles and perform some fine tuning.

I see many knobs we could tune:

emiltin commented 7 years ago

might be worth considering variations of the bike profile. for example you mention scenic value - it might be more attractive when you're going home from work and have a bit extra time, than in the morning when you need to catch a meeting. it's hard to cover all these use cases in a single profile.

emiltin commented 7 years ago

many of the current settings are from the time when you could only change the speed, since there was not weight to adjust. we should consider for each way characteristic how much it should affect speed vs. weight

danpat commented 7 years ago

I agree with @emiltin, we should probably consider multiple bike profiles - there are vastly different needs from different cyclists.

Here's a list to start:

Because hills are such a big deal, I think we should also bundle some scripts to download DEM data (SRTM or something?) that the profiles are actually built to use - I think this would go a long way to improving the bike profile just by itself.

emiltin commented 7 years ago

we also work with 'greenest' bike routes, which prefer parks, green areas, paths along lakes, etc. might. it's currently done with postgis queries from the lua profile, but it could maybe be done easier with raster queries, if a suitable dataset is available.

emiltin commented 7 years ago

cargo bikes is another one profile we use at ibikecph.dk. it avoids all steps and has a higher penalty for bad surfaces, can't bass bicycle barriers, has a different speed, etc.