Compute the distance between two lat / long points.
Declaration
LATLNGDISTANCE(latitude1, longitude1, latitude2, longitude2, measure_string) -> distance
LATLNGDISTANCE(latitude1, longitude1, latitude2, longitude2) -> distance
Parameters
latitude1number -Number represenation of the latitude for first position.longitude1number -Number representation of the longitude for the first position.latitude2number -Number representation of the latitude of the second position.longitude2number -Number representation of the longitude of the second position.measure_stringstring -What distance we should use for the measure.Return Values
- distance
- number -Number of units of the distance between the two points.