<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/geo.circleIntersects.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>geo.circleIntersects</api:function-name><api:suggest>geo.circleintersects</api:suggest><api:suggest>geo</api:suggest><api:suggest>circleintersects</api:suggest><api:function-link mode="xquery" fullname="geo:circle-intersects">/apidoc/8.0/geo:circle-intersects.xml</api:function-link><api:function mode="javascript" name="circleIntersects" 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.circleIntersects"><api:summary>
  Returns true if the circle intersects with a region.
</api:summary><api:params><api:param name="circle" type="cts:circle"><api:param-description>
  A geographic circle.
  </api:param-description><api:param-name>circle</api:param-name><api:param-type>cts.circle</api:param-type></api:param><api:param name="region" type="cts:region*"><api:param-description>
    One or more geographic regions (boxes, circles, polygons, or points).
    Where multiple regions are specified, return true if any region intersects
    the target circle.
  </api:param-description><api:param-name>region</api:param-name><api:param-type>cts.region[]</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>
    <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>
        <dt>"units=miles"</dt>
        <dd>Distance (for circles) is measured in miles.</dd>
        <dt>"boundaries-included"</dt>
        <dd>Points on boxes', circles', and polygons' boundaries are counted as
        matching.  This is the default.</dd>
        <dt>"boundaries-excluded"</dt>
        <dd>Points on boxes', circles', and polygons' boundaries are not 
    counted as matching.</dd>
        <dt>"boundaries-latitude-excluded"</dt>
        <dd>Points on boxes' latitude boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-longitude-excluded"</dt>
        <dd>Points on boxes' longitude boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-south-excluded"</dt>
        <dd>Points on the boxes' southern boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-west-excluded"</dt>
        <dd>Points on the boxes' western boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-north-excluded"</dt>
        <dd>Points on the boxes' northern boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-east-excluded"</dt>
        <dd>Points on the boxes' eastern boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-circle-excluded"</dt>
        <dd>Points on circles' boundary are not counted as matching.</dd>
        <dt>"boundaries-endpoints-excluded"</dt>
        <dd>Points on linestrings' boundary (the endpoints) are not counted as matching.</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>Boolean</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
// Is the Greenwich Observatory within a mile of the A2 Blackheath Road? Yes.
 
geo.circleIntersects(
  cts.circle(1, cts.point(51.48,0)),
  cts.linestring([
    cts.point(51.4745404, -0.0238609),
    cts.point(51.4742464, -0.0212431),
    cts.point(51.4731772, -0.0186682),
    cts.point(51.4729901, -0.0151920),
    cts.point(51.4722950, -0.0132608),
    cts.point(51.4727495, -0.0084972),
    cts.point(51.4718139, -0.0015020),
    cts.point(51.4728029, 0.0095701),
    cts.point(51.4747810, 0.0241184)]));

==&gt; true
</pre></api:example></api:function></api:function-page>