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

Method RoadsToNearestEdges

libs/routing/index_router.cpp:1216–1225  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

1214
1215// static
1216void IndexRouter::PointsOnEdgesSnapping::RoadsToNearestEdges(m2::PointD const & point, vector<RoadInfoT> const & roads,
1217 IsEdgeProjGood const & isGood,
1218 vector<EdgeProjectionT> & edgeProj)
1219{
1220 NearestEdgeFinder finder(point, isGood);
1221 for (auto const & road : roads)
1222 finder.AddInformationSource(road);
1223
1224 finder.MakeResult(edgeProj, kMaxRoadCandidates);
1225}
1226
1227Segment IndexRouter::PointsOnEdgesSnapping::GetSegmentByEdge(Edge const & edge) const
1228{

Callers

nothing calls this directly

Calls 2

AddInformationSourceMethod · 0.80
MakeResultMethod · 0.45

Tested by

no test coverage detected