| 304 | } |
| 305 | |
| 306 | string FormatElevation(string_view elevation) |
| 307 | { |
| 308 | if (!elevation.empty()) |
| 309 | { |
| 310 | double value; |
| 311 | if (strings::to_double(elevation, value)) |
| 312 | return std::string{kMountainSymbol} + platform::Distance::FormatAltitude(value); |
| 313 | else |
| 314 | LOG(LWARNING, ("Invalid elevation metadata:", elevation)); |
| 315 | } |
| 316 | return {}; |
| 317 | } |
| 318 | |
| 319 | constexpr char const * kWlan = "wlan"; |
| 320 | constexpr char const * kWired = "wired"; |
no test coverage detected