ST_timeToDistance

Updated at:
Copy as MD

Returns a line chart in which the time is the x-axis and the Euclidean distance is the y-axis.

Syntax

geometry ST_timeToDistance(trajectory traj);

Parameters

ParameterTypeDescription
trajtrajectoryThe trajectory object.

Return value

Returns a geometry value encoding a line chart where the x-axis represents time and the y-axis represents Euclidean distance.

Examples

SELECT ST_timeToDistance(traj) FROM traj_table;