<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/geo.arcIntersection.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>geo.arcIntersection</api:function-name><api:suggest>geo.arcintersection</api:suggest><api:suggest>geo</api:suggest><api:suggest>arcintersection</api:suggest><api:function-link mode="xquery" fullname="geo:arc-intersection">/apidoc/8.0/geo:arc-intersection.xml</api:function-link><api:function mode="javascript" name="arcIntersection" type="builtin" lib="geo" category="SearchBuiltins" subcategory="Geospatial Operations" hidden="false" bucket="MarkLogic Built-In Functions" prefix="geo" namespace="http://marklogic.com/geospatial" fullname="geo.arcIntersection"><api:summary>
  Returns the point at the intersection of two arcs. If the arcs do
  not intersect, or lie on the same great circle, or if either arc covers
  more than 180 degrees, an error is raised.
</api:summary><api:params><api:param name="p1" type="cts:point"><api:param-description>
  The starting point of the first arc.
  </api:param-description><api:param-name>p1</api:param-name><api:param-type>cts.point</api:param-type></api:param><api:param name="p2" type="cts:point"><api:param-description>
  The ending point of the first arc.
  </api:param-description><api:param-name>p2</api:param-name><api:param-type>cts.point</api:param-type></api:param><api:param name="q1" type="cts:point"><api:param-description>
  The starting point of the second arc.
  </api:param-description><api:param-name>q1</api:param-name><api:param-type>cts.point</api:param-type></api:param><api:param name="q2" type="cts:point"><api:param-description>
  The ending point of the second arc.
  </api:param-description><api:param-name>q2</api:param-name><api:param-type>cts.point</api:param-type></api:param><api:param name="options" type="xs:string*" optional="true"><api:param-description>
  Options for the operation. The default is ().
  <p xmlns="http://www.w3.org/1999/xhtml">Options include:</p>
  <blockquote xmlns="http://www.w3.org/1999/xhtml">
     <dl>
     <dt>"coordinate-system=wgs84"</dt>
     <dd>Use the WGS84 coordinate system.</dd>
     </dl>
   </blockquote>
  </api:param-description><api:param-name>options</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return>cts.point</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var sf = cts.point(37, -122);
var ny = cts.point(40, -73)
var a = cts.point(35,-100)
var b = cts.point(41,-70)
geo.arcIntersection(sf, ny, a, b);

=&gt; 40.458347,-76.203682
</pre></api:example></api:function></api:function-page>