Welcome to mirror list, hosted at ThFree Co, Russian Federation.

speed_camera.cpp « routing - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f82a95e1a5e85db00113db8a8a6548f56a6268ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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