[search][Alohalytics] Add coords to search result.

This commit is contained in:
tatiana-yan 2019-07-22 19:01:44 +03:00 committed by mpimenov
parent 041d47cd27
commit 292d917dfe
2 changed files with 5 additions and 1 deletions

View file

@ -140,6 +140,10 @@ string Result::ToStringForStats() const
s.append(readableType);
s.append("|");
s.append(IsSuggest() ? "1" : "0");
s.append("|");
s.append(to_string(MercatorBounds::YToLat(m_center.y)));
s.append("|");
s.append(to_string(MercatorBounds::XToLon(m_center.x)));
return s;
}

View file

@ -236,7 +236,7 @@ public:
template <typename Fn>
void SortBy(Fn && comparator)
{
sort(begin(), end(), std::forward<Fn>(comparator));
std::sort(begin(), end(), std::forward<Fn>(comparator));
for (int32_t i = 0; i < static_cast<int32_t>(GetCount()); ++i)
operator[](i).SetPositionInResults(i);
}