ST_velocityAtTime

Updated at:
Copy as MD

Returns the velocity attribute value of a trajectory object at a specified time point.

Syntax

float8 ST_VelocityAtTime (trajectory traj, timestamp t);

Parameters

ParameterDescription
trajThe trajectory object.
tThe time point to query.

Return value

float8 — the velocity at the specified time point.

Example

Select ST_velocityAtTime(traj, '2010-1-11 23:40:00') From traj_table;