Platforms to show: All Mac Windows Linux Cross-Platform
Back to MKDistanceFormatterMBS class.
MKDistanceFormatterMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
See also:
MKDistanceFormatterMBS.Constructor(Handle as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 21.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Useful if you get a MKDistanceFormatter reference from a declare.
The object is retained.
See also:
MKDistanceFormatterMBS.distanceFromString(distance as String) as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
distance: A formatted string that specifies a distance.
Returns the distance value represented by the string or -1.0 if the string does not contain a recognized distance value.
This method searches the provided string for a number that could represent a distance. Distances must be specified as purely numerical values. Do not specify distances as fractions such as "1/4 mile".
MKDistanceFormatterMBS.stringFromDistance(distance as Double) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
distance: The distance value that you want to convert to a string.
Returns a user-readable string that describes the distance based on the formatter settings.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.