mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 12:34:24 +00:00
Removing maxspeed estimate from generator
Signed-off-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
This commit is contained in:
@@ -151,7 +151,7 @@ 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()}};
|
||||||
|
/* Commenting this part out as an attempt to solve displayed (and inexistent) max speed in highway links (https://codeberg.org/comaps/comaps/issues/1000)
|
||||||
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) ||
|
||||||
@@ -163,6 +163,7 @@ 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 {};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user