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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

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

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


MapView.Overlays - MapView.PlanRoute

Feedback: Report problem or ask question.