Skip to content

Commit

Permalink
Add a comment line about counting
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase authored and Patrick Niklaus committed May 23, 2017
1 parent 1d26deb commit 314cf3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extractor/guidance/roundabout_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ Intersection RoundaboutHandler::handleRoundabouts(const RoundaboutType roundabou
}
else
{
// check if there is a non-service exit
// Check if there is a non-service exit
const auto has_non_ignorable_exit = [&]() {
for (const auto eid :
node_based_graph.GetAdjacentEdgeRange(node_at_center_of_intersection))
Expand All @@ -480,6 +480,8 @@ Intersection RoundaboutHandler::handleRoundabouts(const RoundaboutType roundabou
return false;
};

// Count normal exits and service roads, if the roundabout is a service road
// itself
if (out_data.road_classification.IsLowPriorityRoadClass() ||
has_non_ignorable_exit())
{
Expand Down

0 comments on commit 314cf3f

Please sign in to comment.