distance3DTo

Calculates the distance (measured in meters) from the current object’s coordinate to the specified coordinate taking altitude into account. This uses the Haversine formula to account for global curvature.

This is equivalent to calling distanceTo with DistanceFormula.HAVERSINE_WITH_ALTITUDE formula.

Here we don't use Android default Location.distanceTo because it gives a bit different results comparing to iOS and Backend

Return

The distance (in meters) between the two coordinates. If altitude is missing even for the one of two coordinates, it will not be taken into account.

Parameters

other

The destination coordinate.