From 5cdf14386d3e9c9e848324a4d20f4ca2d9a0e958 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Fri, 9 May 2025 20:30:26 +0300 Subject: [PATCH] [traffxml] Set OpenLR FOW for ramps Signed-off-by: mvglasow --- traffxml/traff_model.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/traffxml/traff_model.cpp b/traffxml/traff_model.cpp index 0e54fa813..3ece1a95f 100644 --- a/traffxml/traff_model.cpp +++ b/traffxml/traff_model.cpp @@ -105,6 +105,8 @@ openlr::LinearLocationReference TraffLocation::ToLinearLocationReference(bool ba { openlr::LocationReferencePoint lrp = point.ToLrp(); lrp.m_functionalRoadClass = GetFrc(); + if (m_ramps.value_or(traffxml::Ramps::None) != traffxml::Ramps::None) + lrp.m_formOfWay = openlr::FormOfWay::Sliproad; if (!locationReference.m_points.empty()) { // TODO use `distance` from TraFF reference point, if available and consistent with direct distance