| 77 | } |
| 78 | |
| 79 | bool ScoreCandidatePathsGetter::Link::IsJunctionInPath(geometry::PointWithAltitude const & j) const |
| 80 | { |
| 81 | for (auto * l = this; l; l = l->m_parent.get()) |
| 82 | { |
| 83 | if (l->m_edge.GetEndJunction().GetPoint() == j.GetPoint()) |
| 84 | { |
| 85 | LOG(LDEBUG, ("A loop detected, skipping...")); |
| 86 | return true; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | return false; |
| 91 | } |
| 92 | |
| 93 | // ScoreCandidatePathsGetter ---------------------------------------------------------------------------- |
| 94 | bool ScoreCandidatePathsGetter::GetLineCandidatesForPoints(vector<LocationReferencePoint> const & points, |
no test coverage detected