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

> Compute the longest line between the two geometries

Compute the longest line between the two geometries

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

## Signature

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

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

## Parameters

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

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

## Returns

<ResponseField name="return" type="Column">
  Longest line between the two input geometries
</ResponseField>


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