Welcome to mirror list, hosted at ThFree Co, Russian Federation.

feature_utils.hpp « indexer - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: faa721fdd06df9a0055f9a523d2bcf8b96aa6b41 (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 scale to show given feature. Used in search.
  int GetFeatureViewportScale(TypesHolder const & types);

  /// 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