| 644 | } |
| 645 | |
| 646 | void 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 | |
| 664 | void BuildTransitCrossMwmSection(string const & path, string const & mwmFile, string const & country, |
| 665 | CountryParentNameGetterFn const & countryParentNameGetterFn, |
no test coverage detected