Your Airkit journey starts here

LATLNGDISTANCE

Compute the distance between two lat / long points.

Declaration

LATLNGDISTANCE(latitude1, longitude1, latitude2, longitude2, measure_string) -> distance
LATLNGDISTANCE(latitude1, longitude1, latitude2, longitude2) -> distance

Parameters

latitude1
number -Number represenation of the latitude for first position.
longitude1
number -Number representation of the longitude for the first position.
latitude2
number -Number representation of the latitude of the second position.
longitude2
number -Number representation of the longitude of the second position.
measure_string
string -What distance we should use for the measure.

Return Values

distance
number -Number of units of the distance between the two points.