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