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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'routing/routing_session.hpp')
-rw-r--r--routing/routing_session.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/routing/routing_session.hpp b/routing/routing_session.hpp
index 858c922f81..04b3fef8c5 100644
--- a/routing/routing_session.hpp
+++ b/routing/routing_session.hpp
@@ -23,6 +23,8 @@ class RouteMatchingInfo;
namespace routing
{
+struct SpeedCameraRestriction;
+
class RoutingSession
{
public:
@@ -116,6 +118,10 @@ private:
void AssignRoute(Route & route, IRouter::ResultCode e);
+ /// Returns a nearest speed camera record on your way and distance to it.
+ /// Returns kInvalidSpeedCameraDistance if there is no cameras on your way.
+ double GetCurrentCam(SpeedCameraRestriction & camera, Index const & index);
+
/// RemoveRoute removes m_route and resets route attributes (m_state, m_lastDistance, m_moveAwayCounter).
void RemoveRoute();
void RemoveRouteImpl();
@@ -126,6 +132,7 @@ private:
State m_state;
m2::PointD m_endPoint;
size_t m_lastWarnedSpeedCamera;
+ size_t m_lastCheckedCamera;
// TODO (ldragunov) Rewrite UI interop to message queue and avoid mutable.
/// This field is mutable because it's modified in a constant getter. Note that the notification
/// about camera will be sent at most once.