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

> Calculate the maximum distance between two furthest points in the geometries

Calculate the maximum distance between two furthest points in the geometries

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

## Signature

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

ST_MaxDistance(geom1: ColumnOrName, geom2: ColumnOrName) -> Column
```

## Parameters

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

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

## Returns

<ResponseField name="return" type="Column">
  Maximum distance between the geometries
</ResponseField>


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