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

Return true if A touches B

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_Touches/ST_Touches_true.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=1f633570b35206e2003671c0e846c51f" alt="ST_Touches returning true" width="400" height="300" data-path="images/sql-functions/ST_Touches/ST_Touches_true.svg" />

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_Touches/ST_Touches_false.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=ce21cdfdc7d8f0e7005e298acbf92726" alt="ST_Touches returning false" width="400" height="300" data-path="images/sql-functions/ST_Touches/ST_Touches_false.svg" />

## Signatures

```sql theme={"system"}
ST_Touches (A: Geometry, B: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

<ParamField body="B" type="Geometry" required>
  The second geometry.
</ParamField>

## Return type

<ResponseField type="Boolean">
  Returns `true` or `false`.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_Touches(ST_GeomFromWKT('LINESTRING(0 0,1 1,0 2)'), ST_GeomFromWKT('POINT(0 2)'))
```

```
true
```
