geo.distanceConvert( distance as Number, unit1 as String, unit2 as String ) as Number
This function converts a distance from one unit of measure to another. The supported units are "miles", "feet", "km", and "meters". This is a proper superset of the units supported as options to various geospatial functions ("miles","km").
Parameters | |
---|---|
distance | The distance. |
unit1 | The unit of the input distance parameter. |
unit2 | The unit to which the distance should be converted. |
geo.distanceConvert(100, 'meters', 'miles') // => 0.0621371192237334032