diff --git a/indexer/osm_editor.cpp b/indexer/osm_editor.cpp index f355553812..c5cbc1a055 100644 --- a/indexer/osm_editor.cpp +++ b/indexer/osm_editor.cpp @@ -200,8 +200,10 @@ static unordered_map const gEditableTypes = { {"tourism-viewpoint", {{}, true, false}}, {"waterway-waterfall", {{EType::FMD_HEIGHT}, true, false}}}; -TypeDescription const * GetTypeDescription(uint32_t const type) +TypeDescription const * GetTypeDescription(uint32_t type, uint8_t typeTruncateLevel = 2) { + // Truncate is needed to match, for example, amenity-restaurant-vegan as amenity-restaurant. + ftype::TruncValue(type, typeTruncateLevel); auto const readableType = classif().GetReadableObjectName(type); auto const it = gEditableTypes.find(readableType); if (it != end(gEditableTypes))