forked from organicmaps/organicmaps
[search][Alohalytics] Add coords to search result.
This commit is contained in:
parent
041d47cd27
commit
292d917dfe
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue