Distance

Calculates distance between two locations.

Variants

Distance(Location from, Location to)

Calculates distance between two locations on elliptic Earth.

Parameters

from
The location value to starting point.
to
The location value to ending point.

Returns

Numeric

Remarks

Result is returned in meters.

Examples

Distance(Location from, Location to, Text unit)

Calculates distance between two locations on elliptic Earth.

Parameters

from
The location value to starting point.
to
The location value to ending point.
unit
The result is returned according to the unit provided: "m" for meters, "km" for kilometers or "mi" for miles.

Returns

Numeric

Examples