> ## 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_EndPoint

Returns last point of given linestring.

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_EndPoint/ST_EndPoint.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=440ef07d6cf59e9d69e337cacf7c21d6" alt="ST_EndPoint" width="500" height="300" data-path="images/sql-functions/ST_EndPoint/ST_EndPoint.svg" />

## Signatures

```sql theme={"system"}
ST_EndPoint(geom: Geometry)
```

## Parameters

<ParamField body="geom" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_EndPoint(ST_GeomFromText('LINESTRING(100 150,50 60, 70 80, 160 170)'))
```

```
POINT(160 170)
```
