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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortatiana-kondakova <tatiana.kondakova@gmail.com>2018-04-20 12:14:52 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-04-21 12:23:12 +0300
commit5db1892d9b00868d705cc413ecc1e359eea3b81e (patch)
tree96eedd1cacefbcb265239645e73b6c6d7978b2ad /indexer/cell_id.hpp
parente84f61066f9a90116f8d3a064f84e90ac7ceee95 (diff)
[geocoder] Convert LocalityIndex depth to template parameter. Use different depth for objects and regions index in geocoder
Diffstat (limited to 'indexer/cell_id.hpp')
-rw-r--r--indexer/cell_id.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/cell_id.hpp b/indexer/cell_id.hpp
index 8d25e23edc..81c64c0349 100644
--- a/indexer/cell_id.hpp
+++ b/indexer/cell_id.hpp
@@ -12,7 +12,10 @@
using RectId = m2::CellId<19>;
// 24 is enough to have cell size < 2.5m * 2.5m for world.
-using LocalityCellId = m2::CellId<24>;
+constexpr int kGeoObjectsDepthLevels = 24;
+
+// Cell size < 40m * 40m for world is good for regions.
+constexpr int kRegionsDepthLevels = 20;
template <typename Bounds, typename CellId>
class CellIdConverter