From 8010885a91ce8bbbb45ba86587d9a74879313360 Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Wed, 4 Dec 2019 15:06:32 +0300 Subject: [PATCH] [pysearch] Fix pysearch build. --- search/pysearch/bindings.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/search/pysearch/bindings.cpp b/search/pysearch/bindings.cpp index 67d0b8ca75..c999de7685 100644 --- a/search/pysearch/bindings.cpp +++ b/search/pysearch/bindings.cpp @@ -13,7 +13,7 @@ #include "platform/local_country_file_utils.hpp" #include "platform/platform.hpp" -#include "geometry/mercator.hpp" +#include "geometry/point2d.hpp" #include "geometry/rect2d.hpp" #include "base/assert.hpp" @@ -96,7 +96,7 @@ struct Result m_address = r.GetAddress(); m_hasCenter = r.HasPoint(); if (m_hasCenter) - m_center = r.GetFeatureCenter(); + m_center = Mercator(r.GetFeatureCenter()); } string ToString() const @@ -134,7 +134,7 @@ struct SearchEngineProxy SearchEngineProxy() { search::search_quality::InitDataSource(m_dataSource, "" /* mwmListPath */); - search::search_quality::InitAffiliations(m_affiliations); + search::search_quality::InitStorageData(m_affiliations, m_countryNameSynonyms); m_engine = search::search_quality::InitSearchEngine(m_dataSource, m_affiliations, "en" /* locale */, 1 /* numThreads */); } @@ -196,6 +196,7 @@ struct SearchEngineProxy } storage::Affiliations m_affiliations; + storage::CountryNameSynonyms m_countryNameSynonyms; FrozenDataSource m_dataSource; unique_ptr m_engine; };