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

Return the Euclidean distance between A and B

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_Distance/ST_Distance.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=e2488f7673cb95c30956384be6d69a7e" alt="ST_Distance" width="500" height="300" data-path="images/sql-functions/ST_Distance/ST_Distance.svg" />

## Signatures

```sql theme={"system"}
ST_Distance (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="Double">
  A numeric value.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_Distance(ST_GeomFromText('POINT(72 42)'), ST_GeomFromText('LINESTRING(-72 -42, 82 92)'))
```

```
31.155515639003543
```
