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

Function FillOsmIdToFeatureIdsMap

generator/transit_generator_experimental.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47namespace experimental
48{
49void FillOsmIdToFeatureIdsMap(std::string const & osmIdToFeatureIdsPath, OsmIdToFeatureIdsMap & mapping)
50{
51 bool const mappedIds =
52 ForEachOsmId2FeatureId(osmIdToFeatureIdsPath, [&mapping](auto const & compositeId, auto featureId)
53 { mapping[compositeId.m_mainId].push_back(featureId); });
54 CHECK(mappedIds, (osmIdToFeatureIdsPath));
55}
56
57std::string GetMwmPath(std::string const & mwmDir, CountryId const & countryId)
58{

Callers 1

BuildTransitFunction · 0.70

Calls 2

ForEachOsmId2FeatureIdFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected