From 0ba3d4287e0dd96b3799a070e226ca99690e42c6 Mon Sep 17 00:00:00 2001 From: Denis Koronchik Date: Thu, 13 Nov 2014 17:11:00 +0300 Subject: [routing][framework] Add functions to get next turn information and route time --- platform/location.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'platform/location.hpp') diff --git a/platform/location.hpp b/platform/location.hpp index 922926e3c3..978bf8aeab 100644 --- a/platform/location.hpp +++ b/platform/location.hpp @@ -2,6 +2,8 @@ #include "../base/base.hpp" +#include "../routing/turns.hpp" + #include "../std/string.hpp" @@ -77,8 +79,17 @@ namespace location /// @name Formatted covered distance with measurement units suffix. //@{ string m_distToTarget; - string m_unitsSuffix; + string m_targetUnitsSuffix; + //@} + + /// @name Formated distance to next turn with measurement unit suffix + //@{ + string m_distToTurn; + string m_turnUnitsSuffix; + routing::turns::TurnDirection m_turn; + uint32_t m_exitNum; //@} + int m_time; bool IsValid() const { return !m_distToTarget.empty(); } }; -- cgit v1.2.3