forked from organicmaps/organicmaps
Review fixes.
This commit is contained in:
parent
20a0710c49
commit
7444c87a02
2 changed files with 10 additions and 4 deletions
|
@ -320,12 +320,17 @@ SuburbType IsSuburbChecker::GetType(uint32_t t) const
|
|||
|
||||
SuburbType IsSuburbChecker::GetType(feature::TypesHolder const & types) const
|
||||
{
|
||||
auto smallestType = SuburbType::Count;
|
||||
for (uint32_t t : types)
|
||||
{
|
||||
auto const type = GetType(t);
|
||||
if (type != SuburbType::None)
|
||||
return type;
|
||||
if (type != SuburbType::None && type < smallestType)
|
||||
smallestType = type;
|
||||
}
|
||||
|
||||
if (smallestType != SuburbType::Count)
|
||||
return smallestType;
|
||||
|
||||
return SuburbType::None;
|
||||
}
|
||||
|
||||
|
|
|
@ -136,8 +136,9 @@ public:
|
|||
DECLARE_CHECKER_INSTANCE(IsSquareChecker);
|
||||
};
|
||||
|
||||
/// Type of locality (do not change values and order - they have detalization order)
|
||||
/// Suburb > Neighbourhood > Residential
|
||||
// Type of suburb.
|
||||
// Do not change values and order - they are in the order of decreasing specificity.
|
||||
// Suburb > Neighbourhood > Residential
|
||||
enum class SuburbType
|
||||
{
|
||||
None = -1,
|
||||
|
|
Loading…
Add table
Reference in a new issue