Revert "change phantom node to store an appx speed regardless of direction. use this speed to estimate an accel/decel penalty and scale the penalty based on the distance traveled up to a cutoff. only used in the table plugin at the moment. TODO still lives in the guidance assemble_leg area"
This reverts commit ca55521c87.
This commit is contained in:
@@ -182,8 +182,12 @@ inline RouteLeg assembleLeg(const datafacade::BaseDataFacade &facade,
|
||||
duration = std::max(0, duration);
|
||||
}
|
||||
|
||||
// TODO: Add start and stop penalties to the duration to simulate accel/deceleration
|
||||
//
|
||||
// Add start and stop penalties
|
||||
if (distance > 0)
|
||||
duration +=
|
||||
(target_traversed_in_reverse
|
||||
? source_node.reverse_duration_penalty + target_node.reverse_duration_penalty
|
||||
: source_node.forward_duration_penalty + target_node.forward_duration_penalty);
|
||||
|
||||
std::string summary;
|
||||
if (needs_summary)
|
||||
|
||||
Reference in New Issue
Block a user