[taxi] vezet taxi is disabled, list of cities for yandex taxi is updated

This commit is contained in:
Arsentiy Milchakov 2020-08-05 17:21:14 +03:00 committed by Anatoliy V. Tomilov
parent 2c197463a8
commit ea7e1f5374
3 changed files with 139 additions and 23 deletions

View file

@ -48,6 +48,16 @@
],
"id": "Belarus"
},
{
"cities": [
"Gyumri",
"Goris",
"Kapan",
"Vanadzor",
"Yerevan"
],
"id": "Armenia"
},
{
"cities": [
"Tartu",
@ -71,14 +81,7 @@
},
{
"cities": [
"Riga",
"Daugavpils"
],
"id": "Latvia"
},
{
"cities": [
"Chi\u0219in\u0103u"
"Chi\u0219inau"
],
"id": "Moldova"
},
@ -89,23 +92,20 @@
],
"id": "Uzbekistan"
},
{
"cities": [
"Riga",
"Daugavpils"
],
"id": "Latvia"
},
{
"cities": [
"Tbilisi",
"Rustavi",
"Batumi"
],
"id": "Georgia"
},
{
"cities": [
"Gyumri",
"Goris",
"Kapan",
"Vanadzor",
"Yerevan"
],
"id": "Armenia"
"id": "Georgia Region"
},
{
"cities": [
@ -717,7 +717,121 @@
"Elista",
"Yugorsk",
"Yurga",
"Yakutsk"
"Yakutsk",
"Abakan",
"Aleksin",
"Angarsk",
"Astrakhan",
"Barnaul",
"Berezniki",
"Blagoveshchensk",
"Bryansk",
"Veliky Novgorod",
"Vladivostok",
"Vladimir",
"Volgograd",
"Vologda",
"Voronezh",
"Votkinsk",
"Gatchina",
"Dzerzhinsk",
"Dimitrovgrad",
"Donskoj",
"Yekaterinburg",
"Zlatoust",
"Ivanovo",
"Izhevsk",
"Irkutsk",
"Yoshkar-Ola",
"Kazan",
"Kaliningrad",
"Kaluga",
"Kemerovo",
"Kirov",
"Kirov",
"Kondrovo",
"Kostroma",
"Krasnodar",
"Krasnoyarsk",
"Kungur",
"Kyzyl",
"Lipetsk",
"Lysva",
"Lyudinovo",
"Magnitogorsk",
"Miass",
"Minusinsk",
"Moscow",
"Murmansk",
"Naberezhnye Chelny",
"Nizhny Novgorod",
"Nizhny Tagil",
"Novoaltaysk",
"Novokuznetsk",
"Novokuybyshevsk",
"Novomoskovsk",
"Novorossiysk",
"Novosibirsk",
"Novocherkassk",
"Obninsk",
"Oktyabrskiy",
"Omsk",
"Orenburg",
"Orsk",
"Penza",
"Pervouralsk",
"Perm",
"Petrozavodsk",
"Pskov",
"Rostov-on-Don",
"Ryazan",
"Salavat",
"Samara",
"Saint Petersburg",
"Saransk",
"Saratov",
"Sayanogorsk",
"Serpukhov",
"Smolensk",
"Solikamsk",
"Sochi",
"Sterlitamak",
"Syzran",
"Syktyvkar",
"Taganrog",
"Tambov",
"Tver",
"Tolyatti",
"Tomsk",
"Tyumen",
"Ulan-Ude",
"Ulyanovsk",
"Ufa",
"Khabarovsk",
"Chaikovsky",
"Chapaevsk",
"Cheboksary",
"Chelyabinsk",
"Cherepovets",
"Chernogorsk",
"Chita",
"Chusovoy",
"Shakhty",
"Engels",
"Yaroslavl",
"Mytishchi",
"Reutov",
"Kotelniki",
"Dzerzhinsky",
"Vidnoye",
"Odintsovo",
"Krasnogorsk",
"Dolgoprudny",
"Khimki",
"Sestroretsk",
"Murino",
"Shushary",
"Kolpino"
],
"id": "Russian Federation"
},
@ -739,7 +853,10 @@
"Taraz",
"Oral",
"Oskemen",
"Ekibastuz"
"Ekibastuz",
"Almaty",
"Astana",
"Karaganda"
],
"id": "Kazakhstan"
}

View file

@ -544,7 +544,7 @@ UNIT_TEST(TaxiEngine_GetProvidersAtPos)
engine.SetDelegate(std::make_unique<RussiaSochiDelegate>());
providers = engine.GetProvidersAtPos(latlon);
TEST_EQUAL(providers.size(), 1, ());
TEST_EQUAL(providers[0], taxi::Provider::Type::Rutaxi, ());
TEST_EQUAL(providers[0], taxi::Provider::Type::Yandex, ());
engine.SetDelegate(std::make_unique<RussiaKonetsDelegate>());
providers = engine.GetProvidersAtPos(latlon);

View file

@ -119,7 +119,6 @@ void ResultMaker::DecrementRequestCount()
Engine::Engine(std::vector<ProviderUrl> urls /* = {} */)
{
AddApi<yandex::Api>(urls, Provider::Type::Yandex);
AddApi<rutaxi::Api>(urls, Provider::Type::Rutaxi);
AddApi<freenow::Api>(urls, Provider::Type::Freenow);
}