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

Function RoadCategoryToSpeed

generator/maxspeeds_parser.cpp:261–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259};
260
261bool RoadCategoryToSpeed(std::string const & category, routing::SpeedInUnits & speed)
262{
263 auto const it = kRoadCategoryToSpeed.find(category);
264 if (it == kRoadCategoryToSpeed.cend())
265 return false;
266
267 speed = it->second;
268 return true;
269}
270
271bool ParseMaxspeedTag(std::string const & maxspeedValue, routing::SpeedInUnits & speed)
272{

Callers 2

ParseMaxspeedTagFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 2

findMethod · 0.45
cendMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68