This topic describes the ST_timeAtCumulativeDistance function. This function is used to compute the point in time at which the cumulative distance that a trajectory object covers starting from a specified position reaches a specified value.
Syntax
timestamp ST_timeAtCumulativeDistance(trajectory traj, float d);
Parameters
Parameter | Description |
---|---|
traj | The trajectory object whose arrival time at a specific distance you want to compute. |
d | The cumulative distance that the trajectory object covers. |
Examples
Select ST_timeAtCumulativeDistance(traj, 100.0) from traj_table;