mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
23
libs/routing/ruler_router.hpp
Normal file
23
libs/routing/ruler_router.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "routing/router.hpp"
|
||||
#include <string>
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user