diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-05-06 11:16:28 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:47:33 +0300 |
commit | 42df20e39c5fbad309a618029b166a048a031ecf (patch) | |
tree | de9f4624c9fcb5b2a0bcf326ed3824357d6c81f6 /platform/location.hpp | |
parent | 8dc2d58b7176b00f6033f395baa81ff2427433c3 (diff) |
Generating and passing through jni information about lanes which are recommened for the end user.
Diffstat (limited to 'platform/location.hpp')
-rw-r--r-- | platform/location.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/platform/location.hpp b/platform/location.hpp index a93aada073..2bb9921230 100644 --- a/platform/location.hpp +++ b/platform/location.hpp @@ -93,6 +93,19 @@ namespace location class FollowingInfo { public: + struct SingleLaneInfoOuter + { + vector<int8_t> m_lane; + bool m_isActive; + SingleLaneInfoOuter(routing::turns::SingleLaneInfo singleLaneInfo) : m_isActive(singleLaneInfo.m_isActive) + { + routing::turns::TSingleLane const & lane = singleLaneInfo.m_lane; + m_lane.resize(lane.size()); + transform(lane.begin(), lane.end(), m_lane.begin(), + [] (routing::turns::LaneWay l) { return static_cast<int8_t>(l); }); + } + }; + /// @name Formatted covered distance with measurement units suffix. //@{ string m_distToTarget; @@ -108,8 +121,7 @@ namespace location //@} int m_time; // m_lanes contains lane information on the edge before the turn. - // Template parameter int is used for passing the information to Android and iOS. - vector<vector<int8_t>> m_lanes; + vector<SingleLaneInfoOuter> m_lanes; // The next street name string m_targetName; |