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

Method AreSpeedCamerasProhibited

libs/routing/index_router.cpp:1729–1740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1727}
1728
1729bool IndexRouter::AreSpeedCamerasProhibited(NumMwmId mwmID) const
1730{
1731 if (routing::AreSpeedCamerasProhibited(m_numMwmIds->GetFile(mwmID)))
1732 {
1733 // Not a big overhead here, but can cache flag in IndexRouter and reset it via
1734 // Framework -> RoutingSession -> IndexRouter.
1735 bool enabled = false;
1736 settings::TryGet(kDebugSpeedCamSetting, enabled);
1737 return !enabled;
1738 }
1739 return false;
1740}
1741
1742bool IndexRouter::AreMwmsNear(IndexGraphStarter const & starter) const
1743{

Callers

nothing calls this directly

Calls 3

TryGetFunction · 0.85
GetFileMethod · 0.80

Tested by

no test coverage detected