Loading TOC...


   p as cts.point,
   bearing as Number,
   distance as Number,
   [options as String[]]
) as cts.point


Returns the point at the given distance (in units) along the given bearing (in radians) from the starting point.

p The starting point.
bearing The bearing, in radians.
distance The distance, in units. See the units option, below.
options Options for the operation. The default is ().

Options include:

Use the given coordinate system. Valid values are:
The WGS84 coordinate system.
The WGS84 coordinate system at double precision.
The ETRS89 coordinate system.
The ETRS89 coordinate system at double precision.
The raw (unmapped) coordinate system.
The raw coordinate system at double precision.
Use the coordinate system at the given precision. Allowed values: float and double.
Measure distance and the radii of circles in the specified units. Allowed values: miles (default), km, feet, meters.

Usage Notes

The value of the precision option takes precedence over that implied by the governing coordinate system name, including the value of the coordinate-system option. For example, if the governing coordinate system is "wgs84/double" and the precision option is "float", then the operation uses single precision.

See Also


const sf = cts.point(37, -122);
const ny = cts.point(40, -73);
geo.destination(sf, 1.22100904274442,
    geo.distance(sf, ny));

=> cts:point("40.009335,-72.997467")

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.