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

MapView.ParseDistance

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

Parameters

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

Result

Returns number or error.

Description

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

Examples

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