/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
map/taxi_delegate.cpp
32 строки
941 B
Maxim Pimenov
[storage] Removed the T prefix from type aliases and type names.
13 фев 2019, 14:58
13 фев 2019, 14:58
b1bec1c
Код
Авторство
О чём код?
#include "map/taxi_delegate.hpp" #include "search/city_finder.hpp" #include "storage/country_info_getter.hpp" #include "storage/storage.hpp" #include "coding/string_utf8_multilang.hpp" TaxiDelegate::TaxiDelegate(storage::Storage const & st, storage::CountryInfoGetter const & ig, search::CityFinder & cf) : m_storage(st), m_infoGetter(ig), m_cityFinder(cf) { } storage::CountriesVec TaxiDelegate::GetCountryIds(m2::PointD const & point) { auto const countryId = m_infoGetter.GetRegionCountryId(point); storage::CountriesVec topmostCountryIds; m_storage.GetTopmostNodesFor(countryId, topmostCountryIds); return topmostCountryIds; } std::string TaxiDelegate::GetCityName(m2::PointD const & point) { return m_cityFinder.GetCityName(point, StringUtf8Multilang::kEnglishCode); } storage::CountryId TaxiDelegate::GetMwmId(m2::PointD const & point) { return m_infoGetter.GetRegionCountryId(point); }