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

> Snaps input Geometry to reference Geometry controlled by distance tolerance.

Snaps input Geometry to reference Geometry controlled by distance tolerance.

SQL reference: [`ST_Snap`](/reference/wherobots-db/geometry-data/processing/ST_Snap)

## Signature

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

ST_Snap(
    input: ColumnOrName,
    reference: ColumnOrName,
    tolerance: Union[ColumnOrName, float, int],
) -> Column
```

## Parameters

<ParamField path="input" type="ColumnOrName" required>
  Geometry
</ParamField>

<ParamField path="reference" type="ColumnOrName" required>
  Geometry to snap to
</ParamField>

<ParamField path="tolerance" type="Union[ColumnOrName, float, int]" required>
  Distance to control snapping
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Snapped Geometry
</ResponseField>


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