Loading TOC...

geo.distanceConvert

geo.distanceConvert(
   $distance as Number,
   $unit1 as String,
   $unit2 as String
) as Number

Summary

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.

See Also

Example

geo.distanceConvert(100, 'meters', 'miles')

// => 0.0621371192237334032

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy