#pragma once

#include "data_model.h"

namespace maps::mrc::gen_targets {

// Draw optimization of tasks is required for the current mrc android app
// It joins the task edges to reduce the number of polylines

// @brief Joins the task target edges to long edges.
// 2 edges can be joined if they have a common node and similar directions
PathWithData optimizeTargertsForDrawing(const Path& task,
                                 const RoadNetworkData& roadNetwork);

} // namespace maps::mrc::gen_targets
