fixes roundabout counting

This commit is contained in:
Moritz Kobitzsch 2016-03-07 10:38:13 +01:00 committed by Patrick Niklaus
parent 64933389ae
commit afa62064fd

View File

@ -75,7 +75,12 @@ std::vector<TurnCandidate> getTurns(const NodeID from,
bool can_exit_roundabout = false; bool can_exit_roundabout = false;
for (const auto &candidate : turn_candidates) for (const auto &candidate : turn_candidates)
{ {
if (node_based_graph.GetEdgeData(candidate.eid).roundabout) const auto &edge_data = node_based_graph.GetEdgeData(candidate.eid);
//only check actual outgoing edges
if( edge_data.reversed )
continue;
if (edge_data.roundabout)
{ {
can_enter_roundabout = true; can_enter_roundabout = true;
} }