#pragma once

#include <maps/libs/geolib/include/polygon.h>
#include <maps/libs/geolib/include/multipolygon.h>

#include <vector>

namespace maps {
namespace mrc {
namespace tasks_planner {


/**
 * Fix overlapping polygons and construct MultiPolygon from them.
 * Total number of polygons will be preserved.
 */
geolib3::MultiPolygon2
makeMultiPolygon(std::vector<geolib3::Polygon2> polygons);

} // namespace tasks_planner
} // namespace mrc
} // namespace maps
