/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
py-modules-0.2.9
map/taxi_delegate.cpp
33 строки
973 B
Maxim Pimenov
[coding] Renamed the StringUtf8Multilang files.
13 дек 2018, 13:19
13 дек 2018, 13:19
5bd46a0
Код
Авторство
О чём код?
#include "map/taxi_delegate.hpp" #include "search/city_finder.hpp" #include "storage/country_info_getter.hpp" #include "storage/index.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::TCountriesVec TaxiDelegate::GetCountryIds(m2::PointD const & point) { auto const countryId = m_infoGetter.GetRegionCountryId(point); storage::TCountriesVec topmostCountryIds; m_storage.GetTopmostNodesFor(countryId, topmostCountryIds); return topmostCountryIds; } std::string TaxiDelegate::GetCityName(m2::PointD const & point) { return m_cityFinder.GetCityName(point, StringUtf8Multilang::kEnglishCode); } storage::TCountryId TaxiDelegate::GetMwmId(m2::PointD const & point) { return m_infoGetter.GetRegionCountryId(point); }