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

Method GetDefaultSpeed

libs/routing/maxspeeds.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44MaxspeedType Maxspeeds::GetDefaultSpeed(bool inCity, HighwayType hwType) const
45{
46 auto const & theMap = m_defaultSpeeds[inCity ? 1 : 0];
47 auto const it = theMap.find(hwType);
48 return (it != theMap.end()) ? it->second : kInvalidSpeed;
49}
50
51bool Maxspeeds::HasForwardMaxspeed(uint32_t fid) const
52{

Callers 2

LoadMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1