mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 06:03:45 +00:00
[traffxml] Parse and store distance for location points
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -550,7 +550,7 @@ std::string DebugPrint(Point point)
|
||||
std::ostringstream os;
|
||||
os << "Point { ";
|
||||
os << "coordinates: " << DebugPrint(point.m_coordinates) << ", ";
|
||||
// TODO optional float m_distance; (not in struct yet)
|
||||
os << "distance: " << (point.m_distance ? std::to_string(point.m_distance.value()) : "nullopt") << ", ";
|
||||
os << "junctionName: " << point.m_junctionName.value_or("nullopt") << ", ";
|
||||
os << "junctionRef: " << point.m_junctionRef.value_or("nullopt");
|
||||
os << " }";
|
||||
|
||||
Reference in New Issue
Block a user