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

taxi_delegate.hpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2606901075061a555e695b5ca90b475ababc3442 (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
#pragma once

#include "partners_api/taxi_engine.hpp"

namespace storage
{
class Storage;
class CountryInfoGetter;
}

namespace search
{
class CityFinder;
}

class TaxiDelegate : public taxi::Delegate
{
public:
  TaxiDelegate(storage::Storage const & st, storage::CountryInfoGetter const & ig, search::CityFinder & cf);

  storage::TCountriesVec GetCountryIds(m2::PointD const & point) override;
  std::string GetCityName(m2::PointD const & point) override;
  storage::TCountryId GetMwmId(m2::PointD const & point) override;

private:
  storage::Storage const & m_storage;
  storage::CountryInfoGetter const & m_infoGetter;
  search::CityFinder & m_cityFinder;
};