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

> Tests if a geometry encodes a valid trajectory.

Tests if a geometry encodes a valid trajectory. A valid trajectory is represented as a LINESTRING with measures
(M values). The measure values must increase from each vertex to the next.

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

## Signature

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

ST_IsValidTrajectory(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to validate.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  True if the geometry is valid trajectory and False otherwise as a boolean column.
</ResponseField>


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