[traffic] Exclude roundabouts from decoded locations (with exceptions)

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-10-25 15:09:28 +03:00
parent 46d363ae24
commit 9065f45b21
4 changed files with 102 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ void DirectionsEngine::LoadPathAttributes(FeatureID const & featureId, LoadedPat
pathSegment.m_isOneWay = m_onewayChecker(types);
pathSegment.m_roadNameInfo.m_isLink = pathSegment.m_isLink;
pathSegment.m_roadNameInfo.m_onRoundabout = pathSegment.m_onRoundabout;
pathSegment.m_roadNameInfo.m_junction_ref = ft->GetMetadata(feature::Metadata::FMD_JUNCTION_REF);
pathSegment.m_roadNameInfo.m_destination_ref = ft->GetMetadata(feature::Metadata::FMD_DESTINATION_REF);
pathSegment.m_roadNameInfo.m_destination = ft->GetMetadata(feature::Metadata::FMD_DESTINATION);

View File

@@ -121,6 +121,10 @@ public:
* @brief Whether the road is of a link type.
*/
bool m_isLink = false;
/**
* @brief Whether the road is part of a roundabout.
*/
bool m_onRoundabout = false;
RoadNameInfo() = default;
RoadNameInfo(std::string name) : m_name(std::move(name)) {}