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

Class SpeedCameraOnRoute

libs/routing/speed_camera.hpp:12–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10enum class SpeedCameraManagerMode;
11
12struct SpeedCameraOnRoute
13{
14 SpeedCameraOnRoute() = default;
15 SpeedCameraOnRoute(double distFromBegin, uint8_t maxSpeedKmH, m2::PointD const & position)
16 : m_distFromBeginMeters(distFromBegin)
17 , m_maxSpeedKmH(maxSpeedKmH)
18 , m_position(position)
19 {}
20
21 static uint8_t constexpr kNoSpeedInfo = std::numeric_limits<uint8_t>::max();
22
23 bool NoSpeed() const;
24
25 bool IsValid() const;
26 void Invalidate();
27
28 double m_distFromBeginMeters = 0.0; // Distance from beginning of route to current camera.
29 uint8_t m_maxSpeedKmH = kNoSpeedInfo; // Maximum speed allowed by the camera.
30 m2::PointD m_position = m2::PointD::Max();
31};
32} // namespace routing

Callers

nothing calls this directly

Calls 1

MaxFunction · 0.50

Tested by

no test coverage detected