| 15 | namespace generator |
| 16 | { |
| 17 | bool IsComplex(tree_node::types::Ptr<HierarchyEntry> const & tree) |
| 18 | { |
| 19 | size_t constexpr kNumRequiredTypes = 3; |
| 20 | |
| 21 | return tree_node::CountIf(tree, [&](auto const & e) |
| 22 | { |
| 23 | auto const & isPartOfTourismAttractions = ftypes::IsPartOfTourismAttractionsChecker::Instance(); |
| 24 | return isPartOfTourismAttractions(e.m_type); |
| 25 | }) >= kNumRequiredTypes; |
| 26 | } |
| 27 | |
| 28 | storage::CountryId GetCountry(tree_node::types::Ptr<HierarchyEntry> const & tree) |
| 29 | { |