Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tips_api_delegate.cpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8db1b9e328b56edfd27380f1df63e67fbb40c136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "map/tips_api_delegate.hpp"

TipsApiDelegate::TipsApiDelegate(Framework const & framework)
  : m_framework(framework)
{
}

std::optional<m2::PointD> TipsApiDelegate::GetCurrentPosition() const
{
  return m_framework.GetCurrentPosition();
}

bool TipsApiDelegate::IsCountryLoaded(m2::PointD const & pt) const
{
  return m_framework.IsCountryLoaded(pt);
}

bool TipsApiDelegate::HaveTransit(m2::PointD const & pt) const
{
  return m_framework.HaveTransit(pt);
}

double TipsApiDelegate::GetLastBackgroundTime() const
{
  return m_framework.GetLastBackgroundTime();
}

m2::PointD const & TipsApiDelegate::GetViewportCenter() const
{
  return m_framework.GetViewportCenter();
}

storage::CountryId TipsApiDelegate::GetCountryId(m2::PointD const & pt) const
{
  return m_framework.GetCountryIndex(pt);
}

isolines::Quality TipsApiDelegate::GetIsolinesQuality(storage::CountryId const & countryId) const
{
  auto const id = m_framework.GetMwmIdByName(countryId);
  return m_framework.GetIsolinesManager().GetDataQuality(id);
}