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

Method CacheWorldLocalities

libs/search/geocoder.cpp:707–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void Geocoder::CacheWorldLocalities()
708{
709 if (auto context = GetWorldContext(m_dataSource))
710 {
711 // Get only world localities
712 UNUSED_VALUE(m_localitiesCaches.m_countries.Get(*context));
713 UNUSED_VALUE(m_localitiesCaches.m_states.Get(*context));
714 UNUSED_VALUE(m_localitiesCaches.m_citiesTownsOrVillages.Get(*context));
715 }
716 else
717 {
718 // This is strange situation, anyway.
719 LOG(LWARNING, ("Can't find World map file."));
720 }
721}
722
723void Geocoder::FillLocalitiesTable(BaseContext const & ctx)
724{

Callers

nothing calls this directly

Calls 2

GetWorldContextFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected