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

Returns the number of points (vertices) in a geography object.

<img src="https://mintcdn.com/wherobots/dMcCnpwodlRbDvhs/images/sql-functions/ST_NPoints_geography/ST_NPoints_geography.svg?fit=max&auto=format&n=dMcCnpwodlRbDvhs&q=85&s=b7d72d6f01634f0f946099beb1e48f92" alt="ST_NPoints on a global polyline with 4 vertices" width="500" height="300" data-path="images/sql-functions/ST_NPoints_geography/ST_NPoints_geography.svg" />

## Signatures

```sql theme={"system"}
ST_NPoints (A: Geography)
```

## Parameters

<ParamField body="A" type="Geography" required>
  The geography whose vertices are counted.
</ParamField>

## Return type

<ResponseField type="Integer">
  The number of vertices in the geography.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_NPoints(ST_GeogFromWKT('LINESTRING (0 0, 1 1, 2 2)'));
```

```
3
```
