blob: 0691682e9e99385502b3ced05b039ad4c1de6a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "../geometry/rect2d.hpp"
#include "../base/base.hpp"
namespace feature
{
class TypesHolder;
/// Get viewport to show given feature. Used in search.
m2::RectD GetFeatureViewport(TypesHolder const & types, m2::RectD const & limRect);
/// Get search rank for a feature.
/// Roughly, rank + 1 means that feature is 1.x times more popular.
uint8_t GetSearchRank(TypesHolder const & types, m2::PointD const & pt, uint32_t population);
} // namespace feature
|