| 10 | enum class SpeedCameraManagerMode; |
| 11 | |
| 12 | struct 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 |