| 752 | }; |
| 753 | |
| 754 | double CarEstimator::GetUTurnPenalty(Purpose /* purpose */) const |
| 755 | { |
| 756 | // Adds 2 minutes penalty for U-turn. The value is quite arbitrary |
| 757 | // and needs to be properly selected after a number of real-world |
| 758 | // experiments. |
| 759 | return 2 * 60; // seconds |
| 760 | } |
| 761 | |
| 762 | double CarEstimator::GetTurnPenalty(Purpose purpose, double angle, RoadGeometry const & from_road, |
| 763 | RoadGeometry const & to_road, bool is_left_hand_traffic) const |