MCPcopy Create free account
hub / github.com/comaps/comaps / GetLocalizedRegionInfoForResult

Method GetLocalizedRegionInfoForResult

libs/search/ranker.cpp:1030–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028}
1029
1030string Ranker::GetLocalizedRegionInfoForResult(RankerResult const & result) const
1031{
1032 auto const type = result.GetBestType(&m_params.m_preferredTypes);
1033
1034 storage::CountryId id;
1035 if (!result.GetCountryId(m_infoGetter, type, id))
1036 return {};
1037
1038 return m_regionInfoGetter.GetLocalizedFullName(id);
1039}
1040
1041} // namespace search

Callers

nothing calls this directly

Calls 3

GetCountryIdMethod · 0.80
GetBestTypeMethod · 0.45
GetLocalizedFullNameMethod · 0.45

Tested by

no test coverage detected