Description
This custom function is made to return the distance in kilometers between any two GeoPoints (LatLng).
The function requires two positions as input (LatLng) and will output a double. Code can be easily adjusted to return rounded values. Works great with the “Filter and Sort by Distance” function.