
geo:destination( $p as cts:point, $bearing as xs:double, $distance as xs:double, [$options as xs:string*] ) as cts:point
Returns the point at the given distance (in units) along the given bearing (in radians) from the starting point.
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.
let $sf := cts:point(37, -122)
let $ny := cts:point(40, -73)
return
geo:destination($sf, 1.22100904274442,
    geo:distance($sf, $ny))
=> cts:point("40.009335,-72.997467")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.