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:
authorIlya Zverev <zverik@textual.ru>2016-07-13 19:10:25 +0300
committerIlya Zverev <zverik@textual.ru>2016-07-15 18:02:06 +0300
commit989c84e7bb93994a02ba482e83e8ec3a90ff91fa (patch)
tree30947a60ef9a11bee260ac3713c1391d9d99eea3 /indexer/feature_meta.hpp
parent12bac460a214b869695cdf7bf5781e6a50b8b6f4 (diff)
[generator] Add a mwm section with extra region data
Diffstat (limited to 'indexer/feature_meta.hpp')
-rw-r--r--indexer/feature_meta.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/indexer/feature_meta.hpp b/indexer/feature_meta.hpp
index 6d1048eab3..5fccebc38b 100644
--- a/indexer/feature_meta.hpp
+++ b/indexer/feature_meta.hpp
@@ -186,6 +186,27 @@ public:
MetadataBase::Set(type, s);
}
};
+
+class RegionData : public MetadataBase
+{
+public:
+ enum Type
+ {
+ RD_LANGUAGES, // list of written languages
+ RD_DRIVING, // left- or right-hand driving (letter 'l' or 'r')
+ RD_TIMEZONE, // UTC timezone offset, floating signed number of hours: -3, 4.5
+ RD_ADDRESS_FORMAT, // address format, re: mapzen
+ RD_PHONE_FORMAT, // list of strings in "+N NNN NN-NN-NN" format
+ RD_POSTCODE_FORMAT, // list of strings in "AAA ANN" format
+ RD_PUBLIC_HOLIDAYS, // fixed PH dates
+ RD_ALLOW_HOUSENAMES // 'y' if housenames are commonly used
+ };
+
+ void Add(Type type, string const & s)
+ {
+ MetadataBase::Set(type, s);
+ }
+};
} // namespace feature
// Prints types in osm-friendly format.