mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
[routing] New API for lanes
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
23
libs/routing/lanes/lane_info.hpp
Normal file
23
libs/routing/lanes/lane_info.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "routing/lanes/lane_way.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace routing::turns::lanes
|
||||
{
|
||||
struct LaneInfo
|
||||
{
|
||||
LaneWays laneWays;
|
||||
LaneWay recommendedWay = LaneWay::None;
|
||||
|
||||
bool operator==(LaneInfo const & rhs) const
|
||||
{
|
||||
return laneWays == rhs.laneWays && recommendedWay == rhs.recommendedWay;
|
||||
}
|
||||
};
|
||||
using LanesInfo = std::vector<LaneInfo>;
|
||||
|
||||
std::string DebugPrint(LaneInfo const & laneInfo);
|
||||
std::string DebugPrint(LanesInfo const & lanesInfo);
|
||||
} // namespace routing::turns::lanes
|
||||
Reference in New Issue
Block a user