diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2018-09-04 16:28:01 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2018-09-05 13:34:30 +0300 |
commit | 7af77c0e44ef6040effe9c6b5aff31dc2a8d0717 (patch) | |
tree | 254a0a952b9d8305e35bc2ebacecab234e079f05 /routing/segment.hpp | |
parent | 3c31b8bcf3bc5f8b963516bc93137837972bd5eb (diff) |
[routing] Add speed camera section + tests for it.
Diffstat (limited to 'routing/segment.hpp')
-rw-r--r-- | routing/segment.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routing/segment.hpp b/routing/segment.hpp index f0928e6df8..09430848b3 100644 --- a/routing/segment.hpp +++ b/routing/segment.hpp @@ -1,5 +1,6 @@ #pragma once +#include "routing/fake_feature_ids.hpp" #include "routing/road_point.hpp" #include "routing/route_weight.hpp" @@ -72,6 +73,11 @@ public: m_mwmId == seg.m_mwmId && m_forward != seg.m_forward; } + bool IsRealSegment() const + { + return m_mwmId != kFakeNumMwmId && !FakeFeatureIds::IsTransitFeature(m_featureId); + } + private: uint32_t m_featureId = 0; uint32_t m_segmentIdx = 0; |