> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_Intersects

Tests whether two geography objects intersect on the sphere using S2 spherical boolean operations. Returns `true` if `A` and `B` share any portion of space (including a single boundary point), and `false` if they are fully disjoint.

Edges are interpreted as great-circle arcs, so the test is correct even when geographies cross the antimeridian or wrap around the poles — situations where a planar `ST_Intersects` would be wrong.

<img src="https://mintcdn.com/wherobots/rE_Ak061k3dknbDZ/images/sql-functions/ST_Intersects_geography/ST_Intersects_geography_true.svg?fit=max&auto=format&n=rE_Ak061k3dknbDZ&q=85&s=2bf68d971074b4fed0ea6b0cdf15a69a" alt="ST_Intersects returning true" width="500" height="300" data-path="images/sql-functions/ST_Intersects_geography/ST_Intersects_geography_true.svg" />

<img src="https://mintcdn.com/wherobots/rE_Ak061k3dknbDZ/images/sql-functions/ST_Intersects_geography/ST_Intersects_geography_false.svg?fit=max&auto=format&n=rE_Ak061k3dknbDZ&q=85&s=3a62255101e294cc2b71eeae10447e46" alt="ST_Intersects returning false" width="500" height="300" data-path="images/sql-functions/ST_Intersects_geography/ST_Intersects_geography_false.svg" />

## Signatures

```sql theme={"system"}
ST_Intersects (A: Geography, B: Geography)
```

## Parameters

<ParamField body="A" type="Geography" required>
  The first geography.
</ParamField>

<ParamField body="B" type="Geography" required>
  The second geography.
</ParamField>

## Return type

<ResponseField type="Boolean">
  `true` if A and B intersect.
</ResponseField>

## Example

Overlapping polygons:

```sql theme={"system"}
SELECT ST_Intersects(
  ST_GeogFromWKT('POLYGON ((0 0, 2 0, 2 2, 0 2, 0 0))', 4326),
  ST_GeogFromWKT('POLYGON ((1 1, 3 1, 3 3, 1 3, 1 1))', 4326)
);
```

```
true
```

Disjoint polygons:

```sql theme={"system"}
SELECT ST_Intersects(
  ST_GeogFromWKT('POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))', 4326),
  ST_GeogFromWKT('POLYGON ((10 10, 11 10, 11 11, 10 11, 10 10))', 4326)
);
```

```
false
```
