diff --git a/generator/feature_builder.cpp b/generator/feature_builder.cpp index 812706bc2e..b198ca4af4 100644 --- a/generator/feature_builder.cpp +++ b/generator/feature_builder.cpp @@ -207,9 +207,6 @@ bool FeatureBuilder1::PreSerialize() if (!m_params.IsValid()) return false; - /// @todo Do not use flats info. Maybe in future. - m_params.flats.clear(); - switch (m_params.GetGeomType()) { case GEOM_POINT: diff --git a/generator/osm2meta.hpp b/generator/osm2meta.hpp index 825ca8dfce..4b30411912 100644 --- a/generator/osm2meta.hpp +++ b/generator/osm2meta.hpp @@ -117,6 +117,12 @@ public: if (!value.empty()) md.Add(Metadata::FMD_WIKIPEDIA, value); } + else if (k == "addr:flats") + { + string const & value = ValidateAndFormat_flats(v); + if (!value.empty()) + md.Add(Metadata::FMD_FLATS, value); + } return false; } @@ -203,6 +209,10 @@ protected: { return v; } + string ValidateAndFormat_flats(string const & v) const + { + return v; + } // Special URL encoding for wikipedia: // Replaces special characters with %HH codes diff --git a/generator/osm2type.cpp b/generator/osm2type.cpp index e9679306ba..b082833dfb 100644 --- a/generator/osm2type.cpp +++ b/generator/osm2type.cpp @@ -524,7 +524,6 @@ namespace ftype { "building", "entrance", [](string & k, string & v) { k.swap(v); v = "yes"; }}, { "addr:housename", "*", [¶ms](string & k, string & v) { params.AddHouseName(v); k.clear(); v.clear(); }}, { "addr:street", "*", [¶ms](string & k, string & v) { params.AddStreetAddress(v); k.clear(); v.clear(); }}, - { "addr:flats", "*", [¶ms](string & k, string & v) { params.flats = v; k.clear(); v.clear(); }}, { "addr:housenumber", "*", [¶ms](string & k, string & v) { // Treat "numbers" like names if it's not an actual number. diff --git a/generator/osm_element.cpp b/generator/osm_element.cpp index e80a7f1950..30335f3305 100644 --- a/generator/osm_element.cpp +++ b/generator/osm_element.cpp @@ -43,7 +43,6 @@ void OsmElement::AddTag(string const & k, string const & v) // Skip tags for speedup, now we don't use it SKIP_KEY("not:"); - SKIP_KEY("seamark"); // http://wiki.openstreetmap.org/wiki/OpenSeaMap/Seamark_Tag_Values SKIP_KEY("artist_name"); SKIP_KEY("whitewater"); // http://wiki.openstreetmap.org/wiki/Whitewater_sports diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp index 7cc4ad05cd..0050931b55 100644 --- a/indexer/feature_data.hpp +++ b/indexer/feature_data.hpp @@ -121,7 +121,6 @@ struct FeatureParamsBase StringUtf8Multilang name; StringNumericOptimal house; string ref; - string flats; int8_t layer; uint8_t rank; diff --git a/indexer/feature_meta.hpp b/indexer/feature_meta.hpp index 601dfd5fda..cc588048d7 100644 --- a/indexer/feature_meta.hpp +++ b/indexer/feature_meta.hpp @@ -36,6 +36,7 @@ namespace feature FMD_POSTCODE = 15, FMD_WIKIPEDIA = 16, FMD_MAXSPEED = 17, + FMD_FLATS = 18, FMD_COUNT };