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:
authorDenis Koronchik <denis@mapswithme.com>2014-11-13 17:11:00 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:33:17 +0300
commit0ba3d4287e0dd96b3799a070e226ca99690e42c6 (patch)
treeb63cefd4b376fec0e92d6b48ac136ba13a4d3104 /platform/location.hpp
parentbd3ec5e57651ebe476016c4d45574d154bf5b88c (diff)
[routing][framework] Add functions to get next turn information and route time
Diffstat (limited to 'platform/location.hpp')
-rw-r--r--platform/location.hpp13
1 files changed, 12 insertions, 1 deletions
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(); }
};