[traffxml] Set FRC on all OpenLR location reference points

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-05-09 17:56:55 +03:00
parent f041f910e7
commit 6e65e60c3d

View File

@@ -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);
}