From 42df20e39c5fbad309a618029b166a048a031ecf Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Wed, 6 May 2015 11:16:28 +0300 Subject: Generating and passing through jni information about lanes which are recommened for the end user. --- platform/location.hpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'platform/location.hpp') 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 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(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> m_lanes; + vector m_lanes; // The next street name string m_targetName; -- cgit v1.2.3