> ## 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_FrechetDistance (Python)

> Computes discrete frechet distance between the two geometries.

Computes discrete frechet distance between the two geometries.
If any of the geometry is empty, ST\_FrechetDistance returns 0

SQL reference: [`ST_FrechetDistance`](/reference/wherobots-db/geometry-data/measurement/ST_FrechetDistance)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_FrechetDistance

ST_FrechetDistance(g1: ColumnOrName, g2: ColumnOrName) -> Column
```

## Parameters

<ParamField path="g1" type="ColumnOrName" required />

<ParamField path="g2" type="ColumnOrName" required />

## Returns

<ResponseField name="return" type="Column">
  Computed Discrete Frechet Distance between g1 and g2
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.