Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routing_index_generator.hpp « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b8aa652fce7b76619a70196c2d36c3588a4460ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include <cstdint>
#include <functional>
#include <string>

namespace routing
{
using CountryParentNameGetterFn = std::function<std::string(std::string const &)>;

bool BuildRoutingIndex(std::string const & filename, std::string const & country,
                       CountryParentNameGetterFn const & countryParentNameGetterFn);

/// \brief Builds CROSS_MWM_FILE_TAG section.
/// \note Before call of this method
/// * all features and feature geometry should be generated
/// * city_roads section should be generated
void BuildRoutingCrossMwmSection(std::string const & path, std::string const & mwmFile,
                                 std::string const & country,
                                 CountryParentNameGetterFn const & countryParentNameGetterFn,
                                 std::string const & osmToFeatureFile,
                                 bool disableCrossMwmProgress);
/// \brief Builds TRANSIT_CROSS_MWM_FILE_TAG section.
/// \note Before a call of this method TRANSIT_FILE_TAG should be built.
void BuildTransitCrossMwmSection(std::string const & path, std::string const & mwmFile,
                                 std::string const & country,
                                 CountryParentNameGetterFn const & countryParentNameGetterFn);
}  // namespace routing