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: 1a25d34e5c2950e17a652822f4036b2cf0fd62aa (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
#pragma once

#include "partners_api/taxi_engine.hpp"

#include "storage/storage_defines.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::CountriesVec GetCountryIds(m2::PointD const & point) override;
  std::string GetCityName(m2::PointD const & point) override;
  storage::CountryId GetMwmId(m2::PointD const & point) override;

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