All Products
Search
Document Center

AnalyticDB:ST_timeToDistance

Last Updated:Mar 28, 2026

Returns a geometry representing the time-distance relationship of a trajectory, with time on the x-axis and Euclidean distance on the y-axis.

Syntax

geometry ST_timeToDistance(trajectory traj);

Parameters

ParameterDescription
trajThe trajectory object.

Examples

SELECT ST_timeToDistance(traj) FROM traj_table;