mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
Atualizar generator/maxspeeds_builder.cpp
Signed-off-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
This commit is contained in:
@@ -151,9 +151,8 @@ public:
|
|||||||
// Set speed as-is from parent link.
|
// Set speed as-is from parent link.
|
||||||
if (parentHwType == hwType)
|
if (parentHwType == hwType)
|
||||||
return {{s.GetForward(), s.GetUnits()}};
|
return {{s.GetForward(), s.GetUnits()}};
|
||||||
|
|
||||||
using routing::HighwayType;
|
|
||||||
/*
|
/*
|
||||||
|
using routing::HighwayType;
|
||||||
if ((*parentHwType == HighwayType::HighwayMotorway && hwType == HighwayType::HighwayMotorwayLink) ||
|
if ((*parentHwType == HighwayType::HighwayMotorway && hwType == HighwayType::HighwayMotorwayLink) ||
|
||||||
(*parentHwType == HighwayType::HighwayTrunk && hwType == HighwayType::HighwayTrunkLink) ||
|
(*parentHwType == HighwayType::HighwayTrunk && hwType == HighwayType::HighwayTrunkLink) ||
|
||||||
(*parentHwType == HighwayType::HighwayPrimary && hwType == HighwayType::HighwayPrimaryLink) ||
|
(*parentHwType == HighwayType::HighwayPrimary && hwType == HighwayType::HighwayPrimaryLink) ||
|
||||||
@@ -164,9 +163,9 @@ public:
|
|||||||
return converter.ClosestValidMacro(
|
return converter.ClosestValidMacro(
|
||||||
{base::asserted_cast<MaxspeedType>(std::lround(s.GetForward() * kLinkToMainSpeedFactor)), s.GetUnits()});
|
{base::asserted_cast<MaxspeedType>(std::lround(s.GetForward() * kLinkToMainSpeedFactor)), s.GetUnits()});
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ForEachFeature(m_dataPath, [&](FeatureType & ft, uint32_t fid)
|
ForEachFeature(m_dataPath, [&](FeatureType & ft, uint32_t fid)
|
||||||
|
|||||||
Reference in New Issue
Block a user