| 289 | } |
| 290 | |
| 291 | void 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 |
nothing calls this directly
no test coverage detected