ST_WGS84_DISTANCE
Last updated: 9/21/2026Calculates the distance between two WKT formatted points in meters in the WGS84 projection.
Syntax
ST_WGS84_DISTANCE(first, second)
Arguments
| Name | Type | Description | Default Value |
|---|---|---|---|
| first | string | A WKT formatted Longitude Latitude point | |
| second | string | A WKT formatted Longitude Latitude point |
Returns
Returns a double value.
Examples
| first | second | Output |
|---|---|---|
| "POINT (152.352298 -24.875975)" | "POINT (151.960336 -24.993289)" | 41667.7298657432 |