geo:destination(
$p as cts:point,
$bearing as xs:double,
$distance as xs:double,
[$options as xs:string*]
) as cts:point

Summary

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

Parameters

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:

"coordinate-system=string"

Use the given coordinate system. Valid values are:

wgs84

The WGS84 coordinate system with degrees as the angular unit.

wgs84/radians

The WGS84 coordinate system with radians as the angular unit.

wgs84/double

The WGS84 coordinate system at double precision with degrees as the angular unit.

wgs84/radians/double

The WGS84 coordinate system at double precision with radians as the angular unit.

etrs89

The ETRS89 coordinate system.

etrs89/double

The ETRS89 coordinate system at double precision.

raw

The raw (unmapped) coordinate system.

raw/double

The raw coordinate system at double precision.

"precision=value"

Use the coordinate system at the given precision. Allowed values:
float and double.

"units=value"

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.

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