mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[traffxml] Set OpenLR FOW for ramps
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user