> ## 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_Contains

Tests whether geography A fully contains geography B using S2 spherical boolean operations. Returns true if every point of B is inside or on the boundary of A.

<img src="https://mintcdn.com/wherobots/yEl9QVsCpobSsWXg/images/sql-functions/ST_Contains_geography/ST_Contains_geography_true.svg?fit=max&auto=format&n=yEl9QVsCpobSsWXg&q=85&s=f31b9fe9378b77320230ddda0b8331dc" alt="ST_Contains returning true" width="500" height="300" data-path="images/sql-functions/ST_Contains_geography/ST_Contains_geography_true.svg" />

<img src="https://mintcdn.com/wherobots/yEl9QVsCpobSsWXg/images/sql-functions/ST_Contains_geography/ST_Contains_geography_false.svg?fit=max&auto=format&n=yEl9QVsCpobSsWXg&q=85&s=269f083e70fc000116b89dbdce1bf0b4" alt="ST_Contains returning false" width="500" height="300" data-path="images/sql-functions/ST_Contains_geography/ST_Contains_geography_false.svg" />

## Signatures

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

## Parameters

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

<ParamField body="B" type="Geography" required>
  The geography tested for containment within A.
</ParamField>

## Return type

<ResponseField type="Boolean">
  `true` if A fully contains B.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_Contains(
  ST_GeogFromWKT('POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))'),
  ST_GeogFromWKT('POINT (0.5 0.5)')
);
```

```
true
```
