Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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


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


Returns text or error.


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


Format a distance:

MBS( "MapView.FormatDistance"; 9555 )

Example result: "9,6 km"

Format a few meter:

MBS( "MapView.FormatDistance"; 123 )

Example result: 100 m

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 17th March 2019, last changed 15th January 2024

MapView.CreateWithSize - MapView.GetAnnotationCoordinate