getDistance

open fun getDistance(point: GeoPoint): Double

Returns the euclidian distance (in meters) between this GeoPoint and another one.

Return

the euclidian distance (in meters) between this GeoPoint and another one.


open fun getDistance(lon1: Double, lat1: Double, lon2: Double, lat2: Double): Double

Returns the euclidian distance (in meters) between two points which are defined by two pairs of longitudes and latitudes.

Return

the euclidian distance (in meters) between two pairs of longitudes and latitudes.

Parameters

lon1

First longitude

lat1

First latitude

lon2

Second longitude

lat2

Second latitude