co-maps/iphone/Maps/Core/Location/MWMLocationManager+SpeedAndAltitude.swift

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
392 B
Swift
Raw Normal View History

2025-11-22 13:58:55 +01:00
extension LocationManager {
@objc static func speedSymbolFor(_ speed: Double) -> String {
switch max(speed, 0) {
case 0 ..< 1: return "🐢"
case 1 ..< 2: return "🚶"
case 2 ..< 5: return "🏃"
case 5 ..< 10: return "🚲"
case 10 ..< 36: return "🚗"
case 36 ..< 120: return "🚄"
case 120 ..< 278: return "🛩"
default: return "🚀"
}
}
}