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

Method GetNames

libs/search/geocoder.cpp:182–193  ·  view source on GitHub ↗

LocalityScorer::Delegate overrides:

Source from the content-addressed store, hash-verified

180
181 // LocalityScorer::Delegate overrides:
182 void GetNames(uint32_t featureId, vector<string> & names) const override
183 {
184 auto ft = m_context.GetFeature(featureId);
185 if (!ft)
186 return;
187 for (auto const lang : m_params.GetLangs())
188 {
189 string_view name = ft->GetName(lang);
190 if (!name.empty())
191 names.push_back(std::string(name));
192 }
193 }
194
195 uint8_t GetRank(uint32_t featureId) const override { return m_ranks.Get(featureId); }
196

Callers 5

GetNearbyObjectsFunction · 0.45
GetNearbyAddressMethod · 0.45
GetDocVecsMethod · 0.45
operator()Method · 0.45
SetFromFeatureTypeMethod · 0.45

Calls 4

GetFeatureMethod · 0.45
GetNameMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected