maps-utils-ktx / com.google.maps.android.ktx.utils / com.google.android.gms.maps.model.LatLng / sphericalDistance

sphericalDistance

fun LatLng.sphericalDistance(to: LatLng): Double

Computes the spherical distance between this LatLng and to.

Parameters

to - the LatLng to compute the distance to

Return
the distance between this and to in meters