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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2015-07-17 09:35:34 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:56:16 +0300
commit7c200954721510d787e0b491bec196ea83d17788 (patch)
tree32c89c9c5314d662dd42f6b9106683b716012c12 /map/location_state.hpp
parent9084cb6e7fef2a4cc4cd7cb4a0cf437c283d51fe (diff)
Removing a dependence routing unit from map unit.
Diffstat (limited to 'map/location_state.hpp')
-rw-r--r--map/location_state.hpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/map/location_state.hpp b/map/location_state.hpp
index 8534a6d32d..b85fca74b6 100644
--- a/map/location_state.hpp
+++ b/map/location_state.hpp
@@ -8,6 +8,8 @@
#include "routing/turns.hpp"
+#include "platform/location.hpp"
+
#include "std/function.hpp"
#include "std/shared_ptr.hpp"
#include "std/unique_ptr.hpp"
@@ -25,26 +27,6 @@ namespace location
class GpsInfo;
class CompassInfo;
- class RouteMatchingInfo
- {
- m2::PointD m_matchedPosition;
- size_t m_indexInRoute;
- bool m_isPositionMatched;
-
- public:
- RouteMatchingInfo() : m_matchedPosition(0., 0.), m_indexInRoute(0), m_isPositionMatched(false) {}
- void Set(m2::PointD const & matchedPosition, size_t indexInRoute)
- {
- m_matchedPosition = matchedPosition;
- m_indexInRoute = indexInRoute;
- m_isPositionMatched = true;
- }
- void Reset() { m_isPositionMatched = false; }
- bool IsMatched() const { return m_isPositionMatched; }
- size_t GetIndexInRoute() const { return m_indexInRoute; }
- m2::PointD GetPosition() const { return m_matchedPosition; }
- };
-
// Class, that handles position and compass updates,
// centers, scales and rotates map according to this updates
// and draws location and compass marks.