| 48 | } |
| 49 | |
| 50 | bool CandidatePathsGetter::Link::IsPointOnPath(geometry::PointWithAltitude const & point) const |
| 51 | { |
| 52 | for (auto * l = this; l; l = l->m_parent.get()) |
| 53 | { |
| 54 | if (l->m_edge.GetEndJunction() == point) |
| 55 | { |
| 56 | LOG(LDEBUG, ("A loop detected, skipping...")); |
| 57 | return true; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | return false; |
| 62 | } |
| 63 | |
| 64 | // CandidatePathsGetter ---------------------------------------------------------------------------- |
| 65 | bool CandidatePathsGetter::GetLineCandidatesForPoints(vector<LocationReferencePoint> const & points, |
no test coverage detected