From 8cfa34181e8117162587b7a56e178511c62a379e Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Fri, 9 Jun 2017 14:39:38 +0300 Subject: [PATCH] Correct UniNodeId in mwm case. --- routing/bicycle_directions.cpp | 6 +++++- routing/turns.cpp | 6 ++++++ routing/turns.hpp | 6 +++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/routing/bicycle_directions.cpp b/routing/bicycle_directions.cpp index 7df13d9808..0807b805ea 100644 --- a/routing/bicycle_directions.cpp +++ b/routing/bicycle_directions.cpp @@ -212,6 +212,9 @@ void BicycleDirectionsEngine::Generate(RoadGraphBase const & graph, vector m_nextFakeId; Type m_type; FeatureID m_featureId; // Not valid for OSRM. + // Note. In mwm case if UniNodeId represents two directional feature |m_endSegId| is greater + // than |m_startSegId| if |m_forward| == true. uint32_t m_startSegId = 0; // Not valid for OSRM. The first segment index of UniNodeId. - uint32_t m_endSegId = 0; // Not valid for OSRM. The segment index after last of UniNodeId. + uint32_t m_endSegId = 0; // Not valid for OSRM. The last segment index UniNodeId. bool m_forward = true; // Not valid for OSRM. Segment direction in |m_featureId|. // Node id for OSRM case. Fake feature id if UniNodeId is based on an invalid feature id valid for // mwm case. UniNodeId is based on an invalid feature id in case of fake edges near starts and