HAVERSINE_DIST
The HAVERSINE_DIST function computes the haversine distance between two latitude and longitude values and returns the distance in kilometers.
HAVERSINE_DIST Syntax
Use the following syntax when incorporating HAVERSINE_DIST functions in queries:
HAVERSINE_DIST(latitude1, longitude1, latitude2, longitude2)