All Products
Search
Document Center

PolarDB:ST_timeToDistance

Last Updated:Mar 28, 2026

Returns a line chart with time on the x-axis and Euclidean distance on the y-axis.

Syntax

geometry ST_timeToDistance(trajectory traj);

Parameters

ParameterTypeDescription
trajtrajectoryThe trajectory object.

Examples

SELECT ST_timeToDistance(traj) FROM traj_table;