From 2894218573cbc71cbb8b45785014d72ba07d790f Mon Sep 17 00:00:00 2001 From: mvglasow Date: Sun, 18 May 2025 00:30:52 +0300 Subject: [PATCH] [traffic] Use LFRCNP, derived from FRC Signed-off-by: mvglasow --- traffxml/traff_model.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/traffxml/traff_model.cpp b/traffxml/traff_model.cpp index c714d9ef5..fec9aa5eb 100644 --- a/traffxml/traff_model.cpp +++ b/traffxml/traff_model.cpp @@ -217,6 +217,12 @@ openlr::LinearLocationReference TraffLocation::ToLinearLocationReference(bool ba { lrp.m_distanceToNextPoint = GuessDnp(points[i], points[i + 1]); + /* + * Somewhat hackish. LFRCNP is evaluated by the same function as FRC and the candidate is + * used or discarded based on whether a score was returned or not (the score itself is not + * used for LFRCNP). However, this means we can use FRC as LFRCNP. + */ + lrp.m_lfrcnp = GetFrc(); } locationReference.m_points.push_back(lrp); }