From 6b151dee4f18fdf871b13bc0fe21579655a881bd Mon Sep 17 00:00:00 2001 From: Daniil Nikulin <dnikulin@luxoft.com> Date: Mon, 16 Sep 2024 08:51:02 +0000 Subject: [PATCH] feat: Update reference line type according new osi version --- include/MapAPI/reference_line.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/MapAPI/reference_line.h b/include/MapAPI/reference_line.h index 99328b8..8453014 100644 --- a/include/MapAPI/reference_line.h +++ b/include/MapAPI/reference_line.h @@ -27,8 +27,15 @@ struct ReferenceLinePoint struct ReferenceLine { + enum class Type : std::uint8_t + { + TYPE_POLYLINE = 0, + TYPE_POLYLINE_WITH_T_AXIS = 1 + }; + Identifier id{UndefinedId}; - std::vector<ReferenceLinePoint> poly_line; + std::vector<ReferenceLinePoint> poly_line{}; + Type type{Type::TYPE_POLYLINE}; }; } // namespace map_api -- GitLab