Enumeration

MKDistanceFormatter.DistanceUnitStyle

Constants that indicate the format style to use for strings.

Declaration

enum DistanceUnitStyle : UInt

Topics

Constants

case `default`

The decision to abbreviate is based on the current locale and user language settings.

case abbreviated

Use abbreviated units. For example, use the abbreviation km instead of kilometer.

case full

Spell out units in full. For example, use kilometer instead of the abbreviation km.

See Also

Specifying the Format

var locale: Locale!

The locale to use when formatting strings.

var units: MKDistanceFormatter.Units

The measuring system (imperial or metric) to use for units.

enum MKDistanceFormatter.Units

Constants that reflect the type of units to use in the string.