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

Method GetCurrentSpeedLimit

libs/routing/route.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void Route::GetCurrentSpeedLimit(SpeedInUnits & speedLimit) const
168{
169 if (!IsValid())
170 {
171 speedLimit = {};
172 return;
173 }
174
175 auto const idx = m_poly.GetCurrentIter().m_ind;
176 if (idx < m_routeSegments.size())
177 speedLimit = m_routeSegments[idx].GetSpeedLimit();
178}
179
180void Route::GetCurrentStreetName(RouteSegment::RoadNameInfo & roadNameInfo) const
181{

Callers 2

SetDrapeEngineMethod · 0.45

Calls 4

GetCurrentIterMethod · 0.80
IsValidFunction · 0.50
sizeMethod · 0.45
GetSpeedLimitMethod · 0.45

Tested by

no test coverage detected