mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
19
libs/routing/speed_camera.cpp
Normal file
19
libs/routing/speed_camera.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user