Files
comaps/libs/routing/ruler_router.hpp
Konstantin Pastbin bfffa1fff4 Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-08-17 14:32:37 +07:00

23 lines
756 B
C++

#pragma once
#include <string>
#include "routing/router.hpp"
namespace routing
{
class RulerRouter : public IRouter
{
std::string GetName() const override { return {"ruler-router"}; }
void ClearState() override;
void SetGuides(GuidesTracks && guides) override;
RouterResultCode CalculateRoute(Checkpoints const & checkpoints, m2::PointD const & startDirection,
bool adjustToPrevRoute, RouterDelegate const & delegate, Route & route) override;
bool FindClosestProjectionToRoad(m2::PointD const & point, m2::PointD const & direction, double radius,
EdgeProj & proj) override;
// Do we need guides in this router?
// GuidesConnections m_guides;
};
} // namespace routing