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

> Returns a double between 0 and 1 representing the location of the closest point on a LineString to the given Point, as a fraction of 2d line length.

Returns a double between 0 and 1 representing the location of the closest point on a LineString to the given Point, as a fraction of 2d line length.

SQL reference: [`ST_LineLocatePoint`](/reference/wherobots-db/geometry-data/linear-referencing/ST_LineLocatePoint)

## Signature

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

ST_LineLocatePoint(linestring: ColumnOrName, point: ColumnOrName) -> Column
```

## Parameters

<ParamField path="linestring" type="ColumnOrName" required>
  Linestring geometry column to locate point on.
</ParamField>

<ParamField path="point" type="ColumnOrName" required>
  Point geometry column.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  double between 0 and 1 as a fraction of 2d line length.
</ResponseField>


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