Files
comaps/search/filtering_params.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

29 lines
928 B
C++

#pragma once
#include <cstddef>
namespace search
{
// Performance/quality sensitive settings. They are recommended, but not mandatory.
// Radius is in meters from one of the predefined pivots:
// - viewport center
// - user's position
// - matched city center
struct RecommendedFilteringParams
{
/// @name When reading and matching features "along" the street.
/// @{
// Streets search radius, can be ignored if streets count in area is less than m_maxStreetsCount.
double m_streetSearchRadiusM = 80000;
// Max number of street cadidates. Streets count can be greater, if they are all inside m_streetSearchRadiusM area.
size_t m_maxStreetsCount = 100;
// Streets cluster radius - average logical streets group in an average city.
// In case if Exact match is not found in cluster, we do emit Relaxed cluster streets.
double m_streetClusterRadiusMercator = 0.05; // ~5km
/// @}
};
} // namespace search