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

Function BuildRoutingCrossMwmSection

generator/routing_index_generator.cpp:646–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646void BuildRoutingCrossMwmSection(string const & path, string const & mwmFile, string const & country,
647 string const & intermediateDir,
648 CountryParentNameGetterFn const & countryParentNameGetterFn,
649 string const & osmToFeatureFile)
650{
651 LOG(LINFO, ("Building cross mwm section for", country));
652 CrossMwmConnectorBuilderEx<base::GeoObjectId> builder;
653
654 CalcCrossMwmConnectors(path, mwmFile, intermediateDir, country, countryParentNameGetterFn, osmToFeatureFile,
655 {} /* edgeIdToFeatureId */, builder);
656
657 // We use leaps for cars only. To use leaps for other vehicle types add weights generation
658 // here and change WorldGraph mode selection rule in IndexRouter::CalculateSubroute.
659 FillWeights(path, mwmFile, country, countryParentNameGetterFn, builder);
660
661 SerializeCrossMwm(mwmFile, CROSS_MWM_FILE_TAG, builder);
662}
663
664void BuildTransitCrossMwmSection(string const & path, string const & mwmFile, string const & country,
665 CountryParentNameGetterFn const & countryParentNameGetterFn,

Callers 1

generator_tool.cppFile · 0.85

Calls 3

CalcCrossMwmConnectorsFunction · 0.85
FillWeightsFunction · 0.85
SerializeCrossMwmFunction · 0.85

Tested by

no test coverage detected