mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
18
generator/city_roads_generator.hpp
Normal file
18
generator/city_roads_generator.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "generator/cities_boundaries_builder.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace routing_builder
|
||||
{
|
||||
/// \brief Write |cityRoadFeatureIds| to city_roads section to mwm with |dataPath|.
|
||||
/// \param cityRoadFeatureIds a vector of road feature ids in cities.
|
||||
void SerializeCityRoads(std::string const & mwmPath, std::vector<uint32_t> && cityRoadFeatureIds);
|
||||
|
||||
/// \brief Marks road-features as city roads if they covered some boundary from data dumped in
|
||||
/// |boundariesPath|. Then serialize ids of such features to "city_roads" section.
|
||||
bool BuildCityRoads(std::string const & mwmPath, std::string const & boundariesPath);
|
||||
} // namespace routing_builder
|
||||
Reference in New Issue
Block a user