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
Encodes number in Polyline Algorithm Format.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Math | 9.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Value | The value to encode. | 40,7 |
Returns text or error.
Encode number:
MBS("Math.PolylineEncode"; 38.5)
Example result: _p~iF
Encode another value:
MBS("Math.PolylineEncode"; -120.2)
Example result: ~ps|U
Encode a polyline with 3 points:
// Points: (38.5, -120.2), (40.7, -120.95), (43.252, -126.453)
MBS("Math.PolylineEncode"; 38.5) & MBS("Math.PolylineEncode"; -120.20) &
MBS("Math.PolylineEncode"; 40.7 - 38.5) & MBS("Math.PolylineEncode"; -120.95 - -120.2) &
MBS("Math.PolylineEncode"; 43.252 - 40.7) & MBS("Math.PolylineEncode"; -126.453 - -120.95)
Example result: _p~iF~ps|U_ulLnnqC_mqNvxq`@
Created 31st March 2019, last changed 31st March 2019
Math.PolylineDecode - Math.TextToNumber
Feedback: Report problem or ask question.