diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-26 14:23:53 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-27 14:17:14 +0300 |
commit | 9d393d2b51224681a090c76399db3e1f6b8bd10b (patch) | |
tree | c24bbac5a2e2cd76bc53e7902d85891a91ef4da9 /routing/routing_tests | |
parent | e060fd2fa6898a41d8f849b8d575dd17cd1d2bb4 (diff) |
Creating routing mode intead of using onewayAsBidirectional flag.
Diffstat (limited to 'routing/routing_tests')
-rw-r--r-- | routing/routing_tests/road_graph_builder.cpp | 5 | ||||
-rw-r--r-- | routing/routing_tests/road_graph_builder.hpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/routing/routing_tests/road_graph_builder.cpp b/routing/routing_tests/road_graph_builder.cpp index 2de44978ca..b7308da201 100644 --- a/routing/routing_tests/road_graph_builder.cpp +++ b/routing/routing_tests/road_graph_builder.cpp @@ -110,7 +110,10 @@ void RoadGraphMockSource::GetJunctionTypes(Junction const & junction, feature::T UNUSED_VALUE(types); } -bool RoadGraphMockSource::ConsiderOnewayFeaturesAsBidirectional() const { return true; } +IRoadGraph::Mode RoadGraphMockSource::ConsiderOnewayFeaturesAsBidirectional() const +{ + return IRoadGraph::Mode::IgnoreOnewayTag; +} FeatureID MakeTestFeatureID(uint32_t offset) { diff --git a/routing/routing_tests/road_graph_builder.hpp b/routing/routing_tests/road_graph_builder.hpp index 4fbad32f70..de68330a33 100644 --- a/routing/routing_tests/road_graph_builder.hpp +++ b/routing/routing_tests/road_graph_builder.hpp @@ -22,7 +22,7 @@ public: vector<pair<routing::Edge, m2::PointD>> & vicinities) const override; void GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const override; void GetJunctionTypes(routing::Junction const & junction, feature::TypesHolder & types) const override; - bool ConsiderOnewayFeaturesAsBidirectional() const override; + routing::IRoadGraph::Mode ConsiderOnewayFeaturesAsBidirectional() const override; private: vector<RoadInfo> m_roads; |