mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
22 lines
685 B
C++
22 lines
685 B
C++
#pragma once
|
|
|
|
#include "base/geo_object_id.hpp"
|
|
|
|
#include <string>
|
|
|
|
#include "3party/ankerl/unordered_dense.h"
|
|
|
|
namespace generator
|
|
{
|
|
using PopularityIndex = uint8_t;
|
|
using PopularPlaces = ankerl::unordered_dense::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
|