Platforms to show: All Mac Windows Linux Cross-Platform

Back to MKDistanceFormatterMBS class.

MKDistanceFormatterMBS.UnitsDefault = 0

Type Topic Plugin Version
const MapKit MBS MacFrameworks Plugin 19.0
One of the constants that reflect the type of units to use in the string.

The format uses the locale information to determine which units to use. Some locales mix metric and imperial units so do not assume this means one or the other.

MKDistanceFormatterMBS.UnitsImperial = 2

Type Topic Plugin Version
const MapKit MBS MacFrameworks Plugin 19.0
One of the constants that reflect the type of units to use in the string.

The format uses imperial units.

MKDistanceFormatterMBS.UnitsImperialWithYards = 3

Type Topic Plugin Version
const MapKit MBS MacFrameworks Plugin 19.0
One of the constants that reflect the type of units to use in the string.

The format uses imperial units that include measurements in yards.

MKDistanceFormatterMBS.UnitsMetric = 1

Type Topic Plugin Version
const MapKit MBS MacFrameworks Plugin 19.0
One of the constants that reflect the type of units to use in the string.

The format uses metric units.

MKDistanceFormatterMBS.UnitStyleAbbreviated = 1

Type Topic Plugin Version
const MapKit MBS MacFrameworks Plugin 19.0
One of the constants that indicate the format style to use for strings.

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

MKDistanceFormatterMBS.UnitStyleDefault = 0

Type Topic Plugin Version
const MapKit MBS MacFrameworks Plugin 19.0
One of the constants that indicate the format style to use for strings.

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

MKDistanceFormatterMBS.UnitStyleFull = 2

Type Topic Plugin Version
const MapKit MBS MacFrameworks Plugin 19.0
One of the constants that indicate the format style to use for strings.

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

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...