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

Function MakeGpsInfo

qt/qt_common/helpers.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48location::GpsInfo MakeGpsInfo(m2::PointD const & point)
49{
50 location::GpsInfo info;
51 info.m_source = location::EUser;
52 info.m_latitude = mercator::YToLat(point.y);
53 info.m_longitude = mercator::XToLon(point.x);
54 info.m_horizontalAccuracy = 10;
55 info.m_timestamp = QDateTime::currentMSecsSinceEpoch() / 1000.0;
56 return info;
57}
58
59void SetDefaultSurfaceFormat(QString const & platformName)
60{

Callers 1

Calls 2

YToLatFunction · 0.85
XToLonFunction · 0.85

Tested by

no test coverage detected