Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

MapView.FormatDistance

Formats a distance.

Component Version macOS Windows Linux Server iOS SDK
MapView 9.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "MapView.FormatDistance"; distance )   More

Parameters

Parameter Description Example
distance The distance in meters to format. 123

Result

Returns text or error.

Description

Formats a distance.
Uses current locale for formatting, so it uses km in Europe and miles in USA.

Examples

Format a distance:

MBS( "MapView.FormatDistance"; 9555 )

Example result: "9,6 km"

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 17th March 2019, last changed 17th March 2019


MapView.CreateWithSize - MapView.GetAnnotationCoordinate

💬 Ask a question or report a problem