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

Method PedestrianModelFactory

libs/routing_common/pedestrian_model.cpp:195–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195PedestrianModelFactory::PedestrianModelFactory(CountryParentNameGetterFn const & countryParentNameGetterFn)
196 : VehicleModelFactory(countryParentNameGetterFn)
197{
198 using namespace pedestrian_model;
199
200 // Names must be the same with country names from countries.txt
201 m_models[""] = std::make_shared<PedestrianModel>(kDefaultOptions);
202
203 m_models["Australia"] = std::make_shared<PedestrianModel>(AllAllowed());
204 m_models["Austria"] = std::make_shared<PedestrianModel>(NoTrunk());
205 m_models["Belarus"] = std::make_shared<PedestrianModel>(YesCycleway());
206 m_models["Belgium"] = std::make_shared<PedestrianModel>(YesCycleway(YesBridleway(NoTrunk())));
207 m_models["Brazil"] = std::make_shared<PedestrianModel>(YesBridleway());
208 m_models["Denmark"] = std::make_shared<PedestrianModel>(YesCycleway(NoTrunk()));
209 m_models["France"] = std::make_shared<PedestrianModel>(NoTrunk());
210 m_models["Finland"] = std::make_shared<PedestrianModel>(YesCycleway());
211 m_models["Georgia"] = std::make_shared<PedestrianModel>(AllAllowed(), IncreasePrimary());
212 m_models["Greece"] = std::make_shared<PedestrianModel>(YesCycleway(YesBridleway(NoTrunk())));
213 m_models["Hungary"] = std::make_shared<PedestrianModel>(NoTrunk());
214 m_models["Iceland"] = std::make_shared<PedestrianModel>(AllAllowed());
215 m_models["Ireland"] = std::make_shared<PedestrianModel>(AllAllowed());
216 m_models["Netherlands"] = std::make_shared<PedestrianModel>(YesCycleway(NoTrunk()));
217 m_models["Norway"] = std::make_shared<PedestrianModel>(AllAllowed());
218 m_models["Oman"] = std::make_shared<PedestrianModel>(AllAllowed());
219 m_models["Philippines"] = std::make_shared<PedestrianModel>(AllAllowed());
220 m_models["Poland"] = std::make_shared<PedestrianModel>(YesBridleway(NoTrunk()));
221 m_models["Romania"] = std::make_shared<PedestrianModel>(YesBridleway());
222 m_models["Russian Federation"] = std::make_shared<PedestrianModel>(YesCycleway());
223 m_models["Slovakia"] = std::make_shared<PedestrianModel>(NoTrunk());
224 m_models["Spain"] = std::make_shared<PedestrianModel>(NoTrunk());
225 m_models["Sweden"] = std::make_shared<PedestrianModel>(AllAllowed());
226 m_models["Switzerland"] = std::make_shared<PedestrianModel>(NoTrunk());
227 m_models["Turkey"] = std::make_shared<PedestrianModel>(AllAllowed(), IncreasePrimary());
228 m_models["Ukraine"] = std::make_shared<PedestrianModel>(NoTrunk());
229 m_models["United Kingdom"] = std::make_shared<PedestrianModel>(AllAllowed());
230 m_models["United States of America"] = std::make_shared<PedestrianModel>(AllAllowed());
231}
232} // namespace routing

Callers

nothing calls this directly

Calls 5

YesCyclewayFunction · 0.85
YesBridlewayFunction · 0.85
IncreasePrimaryFunction · 0.85
AllAllowedFunction · 0.70
NoTrunkFunction · 0.70

Tested by

no test coverage detected