MCPcopy Create free account
hub / github.com/comaps/comaps / HaveSameUnits

Function HaveSameUnits

libs/routing_common/maxspeed_conversion.cpp:316–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool HaveSameUnits(SpeedInUnits const & lhs, SpeedInUnits const & rhs)
317{
318 return lhs.GetUnits() == rhs.GetUnits() || !lhs.IsNumeric() || !rhs.IsNumeric();
319}
320
321bool IsNumeric(MaxspeedType speed)
322{

Callers 2

CollectFeatureMethod · 0.85
DeserializeMethod · 0.85

Calls 2

IsNumericMethod · 0.80
GetUnitsMethod · 0.45

Tested by

no test coverage detected