| 852 | } |
| 853 | |
| 854 | void Processor::InitPreRanker(Geocoder::Params const & geocoderParams, SearchParams const & searchParams) |
| 855 | { |
| 856 | bool const viewportSearch = searchParams.m_mode == Mode::Viewport; |
| 857 | |
| 858 | PreRanker::Params params; |
| 859 | |
| 860 | if (viewportSearch) |
| 861 | params.m_minDistanceOnMapBetweenResults = searchParams.m_minDistanceOnMapBetweenResults; |
| 862 | |
| 863 | params.m_viewport = GetViewport(); |
| 864 | params.m_accuratePivotCenter = GetPivotPoint(viewportSearch); |
| 865 | params.m_position = m_position; |
| 866 | params.m_scale = geocoderParams.m_scale; |
| 867 | params.m_limit = max(SearchParams::kPreResultsCount, searchParams.m_maxNumResults); |
| 868 | params.m_viewportSearch = viewportSearch; |
| 869 | params.m_categorialRequest = geocoderParams.IsCategorialRequest(); |
| 870 | params.m_numQueryTokens = geocoderParams.GetNumTokens(); |
| 871 | |
| 872 | m_preRanker.Init(params); |
| 873 | } |
| 874 | |
| 875 | namespace |
| 876 | { |
nothing calls this directly
no test coverage detected