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

rb_ads.cpp « partners_api - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 809df011494b521ded09989e49568ef9722d3008 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#include "partners_api/rb_ads.hpp"

namespace
{
auto const kFoodPlacementId = "1";
auto const kShopsPlacementId = "2";
auto const kCityTransportPlacementId = "13";
auto const kGlobalTransportPlacementId = "12";
auto const kHotelsPlacementId = "4";
auto const kSightsPlacementId = "5";
auto const kLargeToponymsPlacementId = "6";
auto const kHealthPlacementId = "7";
auto const kFinancialPlacementId = "8";
auto const kEntertainmentPlacementId = "9";
auto const kBuildingPlacementId = "11";
auto const kBannerIdForOtherTypes = "14";

std::initializer_list<storage::TCountryId> const kSupportedCountries =
{
  "Azerbaijan Region",
  "Armenia",
  "Belarus",
  "Kazakhstan",
  "Kyrgyzstan",
  "Moldova",
  "Russian Federation",
  "Tajikistan",
  "Turkmenistan",
  "Uzbekistan",
  "Ukraine"
};

std::initializer_list<std::string> const kSupportedLanguages = {"be", "hy", "kk", "ru", "uk"};
}  // namespace

namespace ads
{
Rb::Rb()
{
  AppendEntry({{"amenity", "cafe"},
               {"amenity", "fast_food"},
               {"amenity", "restaurant"},
               {"amenity", "bar"},
               {"amenity", "pub"}},
              kFoodPlacementId);

  AppendEntry({{"shop"},
               {"amenity", "marketplace"}},
              kShopsPlacementId);

  AppendEntry({{"aerialway"},
               {"highway", "bus_stop"},
               {"highway", "speed_camera"},
               {"public_transport"}},
              kCityTransportPlacementId);

  AppendEntry({{"aeroway"},
               {"railway"},
               {"man_made", "pier"}},
              kGlobalTransportPlacementId);

  AppendEntry({{"tourism", "hotel"},
               {"tourism", "hostel"},
               {"tourism", "motel"},
               {"tourism", "apartment"},
               {"tourism", "resort"}},
              kHotelsPlacementId);

  AppendEntry({{"tourism", "chalet"},
               {"tourism", "zoo"},
               {"tourism", "artwork"},
               {"tourism", "information"},
               {"tourism", "attraction"},
               {"tourism", "viewpoint"},
               {"tourism", "museum"},
               {"amenity", "fountain"},
               {"amenity", "townhall"},
               {"historic"}},
              kSightsPlacementId);

  AppendEntry({{"place"}}, kLargeToponymsPlacementId);

  AppendEntry({{"amenity", "dentist"},
               {"amenity", "doctors"},
               {"amenity", "clinic"},
               {"amenity", "hospital"},
               {"amenity", "pharmacy"},
               {"amenity", "veterinary"}},
              kHealthPlacementId);

  AppendEntry({{"amenity", "bank"},
               {"amenity", "atm"},
               {"amenity", "bureau_de_change"}},
              kFinancialPlacementId);

  AppendEntry({{"amenity", "cinema"},
               {"amenity", "brothel"},
               {"amenity", "casino"},
               {"amenity", "nightclub"},
               {"amenity", "theatre"},
               {"boundary", "national_park"},
               {"leisure"}},
              kEntertainmentPlacementId);

  AppendEntry({{"building"}}, kBuildingPlacementId);

  AppendSupportedCountries(kSupportedCountries);
  AppendSupportedUserLanguages(kSupportedLanguages);
}

std::string Rb::GetBannerIdForOtherTypes() const
{
  return kBannerIdForOtherTypes;
}
}  // namespace ads