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:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-09-15 14:27:03 +0300
committerLev Dragunov <l.dragunov@corp.mail.ru>2015-10-07 12:57:52 +0300
commitb7c23e7c46433befe482ce9eb06210db66215d0a (patch)
tree99ad882a333be6ea16cd5c05824a76251031d4e6 /indexer
parent240003bab266d2e4a49d55f06b876dee45020cef (diff)
Speedcam routing time computation engine.
Diffstat (limited to 'indexer')
-rw-r--r--indexer/feature_meta.hpp1
-rw-r--r--indexer/ftypes_matcher.cpp12
-rw-r--r--indexer/ftypes_matcher.hpp8
3 files changed, 21 insertions, 0 deletions
diff --git a/indexer/feature_meta.hpp b/indexer/feature_meta.hpp
index f81ef76198..13f447e0b9 100644
--- a/indexer/feature_meta.hpp
+++ b/indexer/feature_meta.hpp
@@ -35,6 +35,7 @@ namespace feature
FMD_EMAIL = 14,
FMD_POSTCODE = 15,
FMD_WIKIPEDIA = 16,
+ FMD_MAXSPEED = 17,
FMD_COUNT
};
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp
index b52cb4fb0d..6527dc8347 100644
--- a/indexer/ftypes_matcher.cpp
+++ b/indexer/ftypes_matcher.cpp
@@ -70,6 +70,18 @@ IsATMChecker const & IsATMChecker::Instance()
return inst;
}
+IsSpeedCamChecker::IsSpeedCamChecker()
+{
+ Classificator const & c = classif();
+ m_types.push_back(c.GetTypeByPath({ "highway", "speed_camera"}));
+}
+
+IsSpeedCamChecker const & IsSpeedCamChecker::Instance()
+{
+ static const IsSpeedCamChecker inst;
+ return inst;
+}
+
IsFuelStationChecker::IsFuelStationChecker()
{
Classificator const & c = classif();
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 0e8b4ada31..6a2a98b698 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -46,6 +46,14 @@ public:
static IsATMChecker const & Instance();
};
+class IsSpeedCamChecker : public BaseChecker
+{
+public:
+ IsSpeedCamChecker();
+
+ static IsSpeedCamChecker const & Instance();
+};
+
class IsFuelStationChecker : public BaseChecker
{
public: