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

Method AddConnectionToOsm

libs/routing/guides_connections.cpp:291–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void GuidesConnections::AddConnectionToOsm(size_t checkpointIdx, Segment const & real,
292 geometry::PointWithAltitude const & loop, bool fromCheckpoint)
293{
294 LatLonWithAltitude const loopPoint(mercator::ToLatLon(loop.GetPoint()), loop.GetAltitude());
295
296 ConnectionToOsm link;
297 link.m_loopVertex = FakeVertex(kFakeNumMwmId, loopPoint, loopPoint, FakeVertex::Type::PureFake);
298 link.m_realSegment = real;
299 link.m_projectedPoint = loop;
300 link.m_fromCheckpoint = fromCheckpoint;
301 std::tie(link.m_realFrom, link.m_realTo) = m_graph.GetFromTo(real);
302
303 m_connectionsToOsm[checkpointIdx].push_back(link);
304}
305} // namespace routing

Callers

nothing calls this directly

Calls 6

FakeVertexFunction · 0.85
GetFromToMethod · 0.80
ToLatLonFunction · 0.50
GetPointMethod · 0.45
GetAltitudeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected