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:
authorOlga Khlopkova <o.khlopkova@corp.mail.ru>2020-10-20 14:55:44 +0300
committerMaksim Andrianov <maksimandrianov1@gmail.com>2020-10-29 10:35:29 +0300
commit585f82c7846fb15bd2f3c51266a9dd971fec3588 (patch)
tree68211ae0f9d7dddd11a43cbff6140159bce53ef6 /transit
parentdad7243edaa08bf72790a4c16d20651d36e3ff8c (diff)
[transit] Feature id field for edge.
Diffstat (limited to 'transit')
-rw-r--r--transit/transit_entities.hpp7
1 files changed, 7 insertions, 0 deletions
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