diff options
Diffstat (limited to 'indexer/feature_meta.hpp')
-rw-r--r-- | indexer/feature_meta.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/feature_meta.hpp b/indexer/feature_meta.hpp index c85b32f0ba..7fc272211a 100644 --- a/indexer/feature_meta.hpp +++ b/indexer/feature_meta.hpp @@ -97,6 +97,7 @@ class Metadata : public MetadataBase public: /// @note! Do not change values here. /// Add new types to the end of list, before FMD_COUNT. + /// Please also modify MetadataTagProcessor::TypeFromString(). enum EType : int8_t { FMD_CUISINE = 1, @@ -125,6 +126,9 @@ public: FMD_COUNT }; + /// Used to normalize tags like "contact:phone" and "phone" to a common metadata enum value. + static bool TypeFromString(string const & osmTagKey, feature::Metadata::EType & outType); + void Set(EType type, string const & value) { MetadataBase::Set(type, value); |