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

Method PointToMwmId

tools/track_analyzing/log_parser.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49{
50public:
51 PointToMwmId(shared_ptr<m4::Tree<routing::NumMwmId>> mwmTree, routing::NumMwmIds const & numMwmIds,
52 string const & dataDir)
53 : m_mwmTree(mwmTree)
54 {
55 numMwmIds.ForEachId([&](routing::NumMwmId numMwmId)
56 {
57 string const & mwmName = numMwmIds.GetFile(numMwmId).GetName();
58 string const polyFile = base::JoinPath(dataDir, BORDERS_DIR, mwmName + BORDERS_EXTENSION);
59 borders::LoadBorders(polyFile, m_borders[numMwmId]);
60 });
61 }
62
63 routing::NumMwmId FindMwmId(m2::PointD const & point, routing::NumMwmId expectedId) const
64 {

Callers

nothing calls this directly

Calls 5

JoinPathFunction · 0.85
ForEachIdMethod · 0.80
GetFileMethod · 0.80
LoadBordersFunction · 0.50
GetNameMethod · 0.45

Tested by

no test coverage detected