Files
comaps/libs/routing/speed_camera.cpp
Alexander Borsuk 76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00

20 lines
331 B
C++

#include "routing/speed_camera.hpp"
namespace routing
{
bool SpeedCameraOnRoute::IsValid() const
{
return m_position != m2::PointD::Max();
}
void SpeedCameraOnRoute::Invalidate()
{
m_position = m2::PointD::Max();
}
bool SpeedCameraOnRoute::NoSpeed() const
{
return m_maxSpeedKmH == kNoSpeedInfo;
}
} // namespace routing