$p1 as cts.point,
$p2 as cts.point,
[$options as String]
) as Number
Returns the distance (in miles) between two points.
The first point.
The second point.
Options for the operation. The default is ().
- Use the given coordinate system. Valid values are:
- The WGS84 coordinate system.
- The raw (unmapped) coordinate system.
- Distance is measured in miles.
var sf = cts.point(37, -122);
var ny = cts.point(40, -73);
Copyright © 2017 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.