sphericalDistance

inline fun LatLng.sphericalDistance(to: LatLng): Double

Computes the spherical distance between this LatLng and to.

Return

the distance between this and to in meters

Parameters

to

the LatLng to compute the distance to