blob: 0abd7eb18aedb5a5143be8f6c8d46b955eacb56a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "generator/osm_id.hpp"
#include "indexer/city_boundary.hpp"
#include "base/clustering_map.hpp"
#include <cstdint>
#include <string>
namespace generator
{
using OsmIdToBoundariesTable = base::ClusteringMap<osm::Id, indexer::CityBoundary, osm::HashId>;
using TestIdToBoundariesTable = base::ClusteringMap<uint64_t, indexer::CityBoundary>;
bool BuildCitiesBoundaries(std::string const & dataPath, std::string const & osmToFeaturePath,
OsmIdToBoundariesTable & table);
bool BuildCitiesBoundariesForTesting(std::string const & dataPath, TestIdToBoundariesTable & table);
bool SerializeBoundariesTable(std::string const & path, OsmIdToBoundariesTable & table);
bool DeserializeBoundariesTable(std::string const & path, OsmIdToBoundariesTable & table);
} // namespace generator
|