Penalties in profile
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:
-
In relation to the
u_turn_penalty,traffic_light_penalty, andturn_penaltywhat exactly do these values mean? I found a comment in the profiletestbot.luawhere it says thattraffic_light_penaltyis 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 theprocess_turncorrectly, it adds these values to the duration of a turn). -
These penalties effectively modify the weight of every edge of the shortest path? I mean, when using
timeas objective, I guess the weight is the duration, right? But when usingroutability, the weight is not only the duration. -
This is not completely related to penalties, but is somewhat. What does
turn_biasstand 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,
I have a doc How OSRM Calculate Weight and Duration may answer some of your questions.
@wangyoucao577 when we use routability, can we consider both duration and distance?
This issue seems to be stale. It will be closed in 30 days if no further activity occurs.