distanceTo

fun GeoPoint.distanceTo(other: GeoPoint): Float

Computes the distance between two GeoPoint. Quite a dirty approach, using conversions to Location, but works as expected.

Author

Arnau Mora

Since

20220401

Return

The distance in meters between the two points.

Parameters

other

The point to compute the distance to.