Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
25
generator/boundary_postcodes_enricher.hpp
Normal file
25
generator/boundary_postcodes_enricher.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include "generator/feature_builder.hpp"
|
||||
|
||||
#include "geometry/region2d.hpp"
|
||||
#include "geometry/tree4d.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
namespace generator
|
||||
{
|
||||
class BoundaryPostcodesEnricher
|
||||
{
|
||||
public:
|
||||
explicit BoundaryPostcodesEnricher(std::string const & boundaryPostcodesFilename);
|
||||
|
||||
void Enrich(feature::FeatureBuilder & fb) const;
|
||||
|
||||
private:
|
||||
std::vector<std::pair<std::string, m2::RegionD>> m_boundaryPostcodes;
|
||||
m4::Tree<size_t> m_boundariesTree;
|
||||
};
|
||||
} // namespace generator
|
||||
Loading…
Add table
Add a link
Reference in a new issue