From 585f82c7846fb15bd2f3c51266a9dd971fec3588 Mon Sep 17 00:00:00 2001 From: Olga Khlopkova Date: Tue, 20 Oct 2020 14:55:44 +0300 Subject: [PATCH] [transit] Feature id field for edge. --- transit/transit_entities.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/transit/transit_entities.hpp b/transit/transit_entities.hpp index d8ce855b03..5bb8e9ff1b 100644 --- a/transit/transit_entities.hpp +++ b/transit/transit_entities.hpp @@ -150,8 +150,15 @@ struct EdgeData : m_shapeLink(shapeLink), m_weight(weight) { } + + explicit EdgeData(EdgeWeight const & weight) : m_weight(weight) {} + ShapeLink m_shapeLink; EdgeWeight m_weight = 0; + + // Feature id for cross-mwm transit section. It is used in Segment class as a feature id for + // transit routing case. + uint32_t m_featureId = 0; }; struct LineSegment