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:
Diffstat (limited to 'transit/world_feed/world_feed.hpp')
-rw-r--r--transit/world_feed/world_feed.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/transit/world_feed/world_feed.hpp b/transit/world_feed/world_feed.hpp
index 2fdd99cd0c..efaea7e665 100644
--- a/transit/world_feed/world_feed.hpp
+++ b/transit/world_feed/world_feed.hpp
@@ -5,6 +5,7 @@
#include "transit/transit_entities.hpp"
#include "transit/transit_schedule.hpp"
#include "transit/world_feed/color_picker.hpp"
+#include "transit/world_feed/feed_helpers.hpp"
#include "geometry/mercator.hpp"
#include "geometry/point2d.hpp"
@@ -244,6 +245,7 @@ struct StopsOnLines
IdList m_stopSeq;
IdSet m_lines;
bool m_isValid = true;
+ transit::Direction m_direction = Direction::Forward;
};
using IdsInRegion = std::unordered_map<std::string, IdSet>;
@@ -338,8 +340,9 @@ private:
// Recalculates 0-weights of edges based on the shape length.
bool UpdateEdgeWeights();
- bool ProjectStopsToShape(ShapesIter & itShape, StopsOnLines const & stopsOnLines,
- std::unordered_map<TransitId, std::vector<size_t>> & stopsToIndexes);
+ std::optional<Direction> ProjectStopsToShape(
+ ShapesIter & itShape, StopsOnLines const & stopsOnLines,
+ std::unordered_map<TransitId, std::vector<size_t>> & stopsToIndexes);
// Splits data into regions.
void SplitFeedIntoRegions();