Loading TOC...

geo.destination

geo.destination(
   $p as cts.point,
   $bearing as Number,
   $distance as Number,
   [$options as String[]]
) as cts.point

Summary

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

Parameters
$p The starting point.
$bearing The bearing, in radians.
$distance The distance, in miles.
$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.
raw
The raw (unmapped) coordinate system.
"units=miles"
Distance is measured in miles.

Example

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

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

Comments

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