Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
20
generator/popular_places_section_builder.hpp
Normal file
20
generator/popular_places_section_builder.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include "base/geo_object_id.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace generator
|
||||
{
|
||||
using PopularityIndex = uint8_t;
|
||||
using PopularPlaces = std::unordered_map<base::GeoObjectId, PopularityIndex>;
|
||||
|
||||
void LoadPopularPlaces(std::string const & srcFilename, PopularPlaces & places);
|
||||
|
||||
void BuildPopularPlacesFromDescriptions(std::string const & mwmFile);
|
||||
void BuildPopularPlacesFromWikiDump(std::string const & mwmFile, std::string const & wikipediaDir,
|
||||
std::string const & idToWikidataPath);
|
||||
|
||||
PopularPlaces const & GetOrLoadPopularPlaces(std::string const & filename);
|
||||
} // namespace generator
|
||||
Loading…
Add table
Add a link
Reference in a new issue