SpokenDistanceFormatter
public class SpokenDistanceFormatter: DistanceFormatter
Provides appropriately formatted, localized descriptions of linear distances for voice use.
-
Returns a more human readable
String
from a givenCLLocationDistance
.The user’s
Locale
is used here to set the units.Declaration
Swift
public override func string(from distance: CLLocationDistance) -> String