distance

open fun distance(@NonNull from: LatLng, @NonNull to: LatLng): Double

Given two points, returns the distance.

Return

The distance in the units set in the FastSphericalUtils CTOR

Parameters

from
to

open fun distance(    fromLatitude: Double,     fromLongitude: Double,     toLatitude: Double,     toLongitude: Double): Double

Given two points, returns the distance.

Return

The distance in the units set in the FastSphericalUtils CTOR

Parameters

fromLatitude
fromLongitude
toLatitude
toLongitude