| 591 | } |
| 592 | |
| 593 | uint32_t IsPartOfTourismAttractionsChecker::GetBestType(FeatureParams::Types const & types) const |
| 594 | { |
| 595 | auto additionalType = ftype::GetEmptyValue(); |
| 596 | auto const itAdditional = m_types.begin() + m_additionalTypesStart; |
| 597 | |
| 598 | for (auto type : types) |
| 599 | { |
| 600 | type = PrepareToMatch(type, m_level); |
| 601 | if (binary_search(m_types.begin(), itAdditional, type)) |
| 602 | return type; |
| 603 | |
| 604 | if (binary_search(itAdditional, m_types.end(), type)) |
| 605 | additionalType = type; |
| 606 | } |
| 607 | |
| 608 | return additionalType; |
| 609 | } |
| 610 | |
| 611 | IsPlaceChecker::IsPlaceChecker() : BaseChecker(1 /* level */) |
| 612 | { |
no test coverage detected