mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
[traff_assessment_tool] Show location fuzziness in list
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -123,6 +123,32 @@ QVariant GetCountryAndRoadRef(TraffMessage const & message)
|
|||||||
result += '\n';
|
result += '\n';
|
||||||
result += message.m_location.value().m_roadRef.value();
|
result += message.m_location.value().m_roadRef.value();
|
||||||
}
|
}
|
||||||
|
if (message.m_location.value().m_fuzziness)
|
||||||
|
{
|
||||||
|
if (!result.empty())
|
||||||
|
result += '\n';
|
||||||
|
switch (message.m_location.value().m_fuzziness.value())
|
||||||
|
{
|
||||||
|
case traffxml::Fuzziness::LowRes:
|
||||||
|
result += "LowRes";
|
||||||
|
break;
|
||||||
|
case traffxml::Fuzziness::MediumRes:
|
||||||
|
result += "MediumRes";
|
||||||
|
break;
|
||||||
|
case traffxml::Fuzziness::EndUnknown:
|
||||||
|
result += "EndUnknown";
|
||||||
|
break;
|
||||||
|
case traffxml::Fuzziness::StartUnknown:
|
||||||
|
result += "StartUnknown";
|
||||||
|
break;
|
||||||
|
case traffxml::Fuzziness::ExtentUnknown:
|
||||||
|
result += "ExtentUnknown";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
result += "(invalid)";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return QString::fromStdString(result);
|
return QString::fromStdString(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user