From 6e65e60c3d396fc1ebfc0c4d87ed5e9a3500ddbe Mon Sep 17 00:00:00 2001 From: mvglasow Date: Fri, 9 May 2025 17:56:55 +0300 Subject: [PATCH] [traffxml] Set FRC on all OpenLR location reference points Signed-off-by: mvglasow --- traffxml/traff_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traffxml/traff_model.cpp b/traffxml/traff_model.cpp index 14b469473..9ba8d1926 100644 --- a/traffxml/traff_model.cpp +++ b/traffxml/traff_model.cpp @@ -104,11 +104,11 @@ openlr::LinearLocationReference TraffLocation::ToLinearLocationReference(bool ba for (auto point : points) { openlr::LocationReferencePoint lrp = point.ToLrp(); + lrp.m_functionalRoadClass = GetFrc(); if (!locationReference.m_points.empty()) { locationReference.m_points.back().m_distanceToNextPoint = GuessDnp(locationReference.m_points.back(), lrp); - locationReference.m_points.back().m_functionalRoadClass = GetFrc(); } locationReference.m_points.push_back(lrp); }