Optional transit line penalties when no explicit line was given (#19)
* Enable transit line penalties also when no explicit line was given Currently, if no transit line is given, all edges get penalty factor 0 regardless of whether there are transit lines following the edge or not. The change introduced in this commit will give penalty factor 0 if there is at least one transit line following the edge and penalty factor 1 if there are no tranist lines at all following the edge. Behavior in the case when a transit line is given is untouched. This should improve routing results by preferring edges with associated transit lines. This used to be the behaviour before some refactoring. Maybe it was broken unintentionally.
This commit is contained in:
parent
e06c15656b
commit
08b0685ad1
5 changed files with 52 additions and 9 deletions
30
pfaedle.cfg
30
pfaedle.cfg
|
|
@ -411,6 +411,11 @@ routing_one_way_meter_punish_fac: 1
|
|||
# information
|
||||
routing_line_unmatched_punish_fac: 1
|
||||
|
||||
# Punishment factor for every meter a vehicle
|
||||
# travels through an edge without any line
|
||||
# information when no specific line was requested
|
||||
# routing_no_lines_punish_fac: 0
|
||||
|
||||
# special line normalization for trains
|
||||
line_normalize_chain:
|
||||
, -> ' ';
|
||||
|
|
@ -793,6 +798,11 @@ routing_one_way_edge_punish: 5000
|
|||
# information
|
||||
# routing_line_unmatched_punish_fac: 1.75
|
||||
|
||||
# Punishment factor for every meter a vehicle
|
||||
# travels through an edge without any line
|
||||
# information when no specific line was requested
|
||||
# routing_no_lines_punish_fac: 0
|
||||
|
||||
[coach]
|
||||
|
||||
# OSM entities to keep on different levels, as k=v. Applies
|
||||
|
|
@ -1011,6 +1021,11 @@ routing_one_way_meter_punish_fac: 1
|
|||
# information
|
||||
routing_line_unmatched_punish_fac: 0.5
|
||||
|
||||
# Punishment factor for every meter a vehicle
|
||||
# travels through an edge without any line
|
||||
# information when no specific line was requested
|
||||
# routing_no_lines_punish_fac: 0
|
||||
|
||||
[gondola]
|
||||
|
||||
# OSM entities to keep on different levels, as k=v. Applies
|
||||
|
|
@ -1152,6 +1167,11 @@ routing_one_way_meter_punish_fac: 1
|
|||
# information
|
||||
routing_line_unmatched_punish_fac: 0.5
|
||||
|
||||
# Punishment factor for every meter a vehicle
|
||||
# travels through an edge without any line
|
||||
# information when no specific line was requested
|
||||
# routing_no_lines_punish_fac: 0
|
||||
|
||||
[funicular]
|
||||
|
||||
# OSM entities to keep on different levels, as k=v. Applies
|
||||
|
|
@ -1324,6 +1344,11 @@ routing_one_way_meter_punish_fac: 1
|
|||
# information
|
||||
routing_line_unmatched_punish_fac: 0.5
|
||||
|
||||
# Punishment factor for every meter a vehicle
|
||||
# travels through an edge without any line
|
||||
# information when no specific line was requested
|
||||
# routing_no_lines_punish_fac: 0
|
||||
|
||||
[ferry]
|
||||
|
||||
# OSM entities to keep on different levels, as k=v. Applies
|
||||
|
|
@ -1425,3 +1450,8 @@ routing_one_way_meter_punish_fac: 1
|
|||
# information
|
||||
routing_line_unmatched_punish_fac: 0.5
|
||||
|
||||
# Punishment factor for every meter a vehicle
|
||||
# travels through an edge without any line
|
||||
# information when no specific line was requested
|
||||
# routing_no_lines_punish_fac: 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue