writes .osrm.cnbg_to_ebg
| 159 | |
| 160 | // writes .osrm.cnbg_to_ebg |
| 161 | inline void writeNBGMapping(const std::filesystem::path &path, const std::vector<NBGToEBG> &mapping) |
| 162 | { |
| 163 | const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint; |
| 164 | storage::tar::FileWriter writer{path, fingerprint}; |
| 165 | |
| 166 | storage::serialization::write(writer, "/common/cnbg_to_ebg", mapping); |
| 167 | } |
| 168 | |
| 169 | // reads .osrm.datasource_names |
| 170 | inline void readDatasources(const std::filesystem::path &path, Datasources &sources) |