Name

ST_DistanceCPA —
Returns the distance between closest points of approach in two trajectories.

Synopsis

float8 ST_DistanceCPA(geometry track1, geometry track2);

Description

Returns the minimum distance two moving objects have ever been each-other.
Inputs must be valid trajectories as checked by
ST_IsValidTrajectory.
Null is returned if the trajectories do not overlap on the M range.