distanceTo

open fun distanceTo(to: GeoCoordinates): Double

Calculates the distance, as measured in meters, between this GeoCoordinate and the specified GeoCoordinate.

Return

The distance between the coordinates.

Parameters

to

A second GeoCoordinate some distance away

Throws

when one of the coordinates is invalid