MCPcopy Create free account
hub / github.com/comaps/comaps / IsJunctionInPath

Method IsJunctionInPath

tools/openlr/score_candidate_paths_getter.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool 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 ----------------------------------------------------------------------------
94bool ScoreCandidatePathsGetter::GetLineCandidatesForPoints(vector<LocationReferencePoint> const & points,

Callers 1

GetAllSuitablePathsMethod · 0.80

Calls 2

getMethod · 0.65
GetPointMethod · 0.45

Tested by

no test coverage detected