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

Function ParseWaysFeatureIdToOsmIdMapping

generator/routing_helpers.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void ParseWaysFeatureIdToOsmIdMapping(std::string const & osmIdsToFeatureIdPath, FeatureIdToOsmId & featureIdToOsmId)
40{
41 featureIdToOsmId.clear();
42
43 ForEachWayFromFile(osmIdsToFeatureIdPath, [&](uint32_t featureId, base::GeoObjectId const & osmId)
44 {
45 auto const emplaced = featureIdToOsmId.emplace(featureId, osmId);
46 CHECK(emplaced.second, ("Feature id", featureId, "is included in two osm ids:", emplaced.first->second, osmId));
47 });
48}
49
50class OsmWay2FeaturePointImpl : public OsmWay2FeaturePoint
51{

Callers 3

BuildMaxspeedsSectionFunction · 0.85
CalcCrossMwmTransitionsFunction · 0.85
LoadFID2OsmIDMethod · 0.85

Calls 3

ForEachWayFromFileFunction · 0.85
clearMethod · 0.45
emplaceMethod · 0.45

Tested by 1

LoadFID2OsmIDMethod · 0.68