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

search_trie.hpp « search - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ed180e82926032f003a798d568e8456812a64c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "coding/geometry_coding.hpp"
#include "coding/point_coding.hpp"

namespace search
{
static const uint8_t kCategoriesLang = 128;
static const uint8_t kPostcodesLang = 129;
static const uint8_t kPointCodingBits = 20;
}  // namespace search

namespace trie
{
inline serial::GeometryCodingParams GetGeometryCodingParams(
    serial::GeometryCodingParams const & orig)
{
  return serial::GeometryCodingParams(search::kPointCodingBits,
                                      PointUToPointD(orig.GetBasePoint(), orig.GetCoordBits()));
}
}  // namespace trie