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

Method SetPlacePageLocation

libs/map/framework.cpp:3300–3313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3298}
3299
3300void Framework::SetPlacePageLocation(place_page::Info & info)
3301{
3302 ASSERT(m_infoGetter, ());
3303
3304 if (info.GetCountryId().empty())
3305 info.SetCountryId(m_infoGetter->GetRegionCountryId(info.GetMercator()));
3306
3307 CountriesVec countries;
3308 if (info.GetTopmostCountryIds().empty())
3309 {
3310 GetStorage().GetTopmostNodesFor(info.GetCountryId(), countries);
3311 info.SetTopmostCountryIds(std::move(countries));
3312 }
3313}
3314
3315void Framework::FillDescriptions(FeatureType & ft, place_page::Info & info) const
3316{

Callers

nothing calls this directly

Calls 7

ASSERTFunction · 0.85
GetCountryIdMethod · 0.80
SetCountryIdMethod · 0.80
GetRegionCountryIdMethod · 0.80
GetTopmostNodesForMethod · 0.80
SetTopmostCountryIdsMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected