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


Parses distance string.

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


Parameter Description Example
text The text to parse. "8 km"


Returns number or error.


Parses distance string.
Uses current locale, so may use miles in US and km in Europe.
Returns distance in meters.


Parse 8 km:

MBS( "MapView.ParseDistance"; "8 km" )

Example result: 8000

See also

Release notes

Blog Entries

This function is free to use.

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

MapView.Overlays - MapView.PlanRoute