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

Function NoTrunk

libs/routing_common/bicycle_model.cpp:99–107  ·  view source on GitHub ↗

Same as defaults except trunk and trunk_link are not allowed

Source from the content-addressed store, hash-verified

97
98// Same as defaults except trunk and trunk_link are not allowed
99VehicleModel::LimitsInitList NoTrunk()
100{
101 VehicleModel::LimitsInitList res;
102 res.reserve(kDefaultOptions.size() - 2);
103 for (auto const & e : kDefaultOptions)
104 if (e.m_type != HighwayType::HighwayTrunk && e.m_type != HighwayType::HighwayTrunkLink)
105 res.push_back(e);
106 return res;
107}
108
109// Same as defaults except pedestrian is allowed
110HighwayBasedSpeeds NormalPedestrianSpeed()

Callers 2

UkraineOptionsFunction · 0.70
BicycleModelFactoryMethod · 0.70

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected