[traffxml] Set OpenLR FOW for ramps

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-05-09 20:30:26 +03:00
parent 2f6a8564cb
commit 5cdf14386d

View File

@@ -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