ST_Distance function [Spatial]

Returns the smallest distance between two specified geometry values. If the points are in SRID 4326, the units are in meters.

 Syntax
 Parameters
 Returns
 Standards and compatibility
 Example