Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

MKDistanceFormatterMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: A utility object that converts between a geographic distance and a string-based expression of that distance.
Example:
dim f as new MKDistanceFormatterMBS

f.Units = f.UnitsMetric
f.UnitStyle = f.UnitStyleFull

MsgBox f.stringFromDistance(1234.56)
Notes: You use a distance formatter when you need to display distances to the user or when you want to parse user-specified text to obtain a numerical value for a distance. When formatting strings containing distances, a distance formatter object takes into account the user’s locale and language settings. You can also specify a custom locale or custom units for any distances that you format.

Feedback, Comments & Corrections

Units

Constant Value Description
UnitsDefault 0 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.
UnitsImperial 2 The format uses imperial units.
UnitsImperialWithYards 3 The format uses imperial units that include measurements in yards.
UnitsMetric 1 The format uses metric units.

Util Styles

Constant Value Description
UnitStyleAbbreviated 1 Use abbreviated units. For example, use the abbreviation km instead of kilometer.
UnitStyleDefault 0 The decision to abbreviate is based on the current locale and user language settings.
UnitStyleFull 2 Spell out units in full. For example, use kilometer instead of the abbreviation km.

This class has no sub classes.


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


MKDirectionsResponseMBS   -   MKETAResponseMBS




Links
MBS FileMaker Plugins