| 388 | } |
| 389 | |
| 390 | double RoutingSession::GetCurrentSpeedLimit() const |
| 391 | { |
| 392 | if (!m_route->IsValid()) |
| 393 | return -1; |
| 394 | |
| 395 | SpeedInUnits speedLimit; |
| 396 | m_route->GetCurrentSpeedLimit(speedLimit); |
| 397 | if (speedLimit.IsNumeric()) |
| 398 | return measurement_utils::KmphToMps(speedLimit.GetSpeedKmPH()); |
| 399 | else if (speedLimit.GetSpeed() == kNoneMaxSpeed) |
| 400 | return 0; |
| 401 | else |
| 402 | return -1.0; |
| 403 | } |
| 404 | |
| 405 | void RoutingSession::GetRouteFollowingInfo(FollowingInfo & info) const |
| 406 | { |
nothing calls this directly
no test coverage detected