distance2DTo

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

This is equivalent to calling distanceTo with DistanceFormula.HAVERSINE 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.

Parameters

other

The destination coordinate.