osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Penalties in profile

Open counlin opened this issue 5 years ago • 2 comments

Hello everyone, I just started using OSRM and after reading trough the docs (at least what I have found), I need help with configuring the profile. In particular, I am completely lost about the penalties that I can add to the profile in order to account for traffic lights, turns, etc.

I am basing all my questions on the car.lua profile.

So here goes:

  1. In relation to the u_turn_penalty , traffic_light_penalty , and turn_penalty what exactly do these values mean? I found a comment in the profile testbot.lua where it says that traffic_light_penalty is in seconds. Is it true? An if it is, is this time in seconds added to the duration of segments/turns containing a traffic light then? (if I understood the process_turn correctly, it adds these values to the duration of a turn).

  2. These penalties effectively modify the weight of every edge of the shortest path? I mean, when using time as objective, I guess the weight is the duration, right? But when using routability , the weight is not only the duration.

  3. This is not completely related to penalties, but is somewhat. What does turn_bias stand for and how does it relate to the turn penalties?

If there are places where I can find this information, please let me know. I read the full document in https://github.com/Project-OSRM/osrm-backend/blob/master/docs/profiles.md but could not get all the information I needed.

Thanks,

counlin avatar Feb 17 '20 20:02 counlin

I have a doc How OSRM Calculate Weight and Duration may answer some of your questions.

wangyoucao577 avatar Feb 18 '20 01:02 wangyoucao577

@wangyoucao577 when we use routability, can we consider both duration and distance?

GitBenjamin avatar Sep 08 '22 12:09 GitBenjamin

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 08 '24 20:07 github-actions[bot]