mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 06:53:46 +00:00
[traffic] Documentation and comment cleanup
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -583,11 +583,6 @@ double RoutingTraffDecoder::TraffEstimator::GetTurnPenalty(Purpose /* purpose */
|
||||
routing::RoadGeometry const & to_road,
|
||||
bool is_left_hand_traffic) const
|
||||
{
|
||||
/*
|
||||
* TODO determine if turn penalties make sense for the traffic decoder, else leave them out.
|
||||
* `angle` seems to be in degrees, right is negative
|
||||
* Turn is at the first or last point of the roads involved, compare points to find out.
|
||||
*/
|
||||
// Flip sign for left-hand traffic, so a positive angle always means a turn across traffic
|
||||
if (is_left_hand_traffic)
|
||||
angle *= -1;
|
||||
|
||||
Reference in New Issue
Block a user