distance


Description:

[ Version ( since = "1.2" ) ]
public double distance (Location other)

Calculates the distance in meters between two locations.

This function uses the great-circle distance formula, which assumes Earth is a perfect sphere. This limits the accuracy of the result, but is good enough for most purposes.

Parameters:

this

a [iface@Location]

other

a [iface@Location]

Returns:

the distance in meters between this and other