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

Method SetRwSubwayType

libs/indexer/feature_data.cpp:400–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void FeatureParams::SetRwSubwayType(char const * cityName)
401{
402 Classificator const & c = classif();
403
404 static uint32_t const src = c.GetTypeByPath({"railway", "station"});
405 uint32_t const dest = c.GetTypeByPath({"railway", "station", "subway", cityName});
406
407 for (size_t i = 0; i < m_types.size(); ++i)
408 {
409 if (ftype::Trunc(m_types[i], 2) == src)
410 {
411 m_types[i] = dest;
412 break;
413 }
414 }
415}
416
417FeatureParams::TypesResult FeatureParams::FinishAddingTypesEx()
418{

Callers 1

PostprocessElementFunction · 0.80

Calls 3

TruncFunction · 0.85
GetTypeByPathMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected