sphericalLawOfCosinesDistance method
Calculate the Spherical Law of Cosines distance between two geographic points.
Given two geographic points point1
and point2
, this function calculates and returns the Spherical Law of Cosines distance between these two points in meters.
Implementation
double sphericalLawOfCosinesDistance(LatLng point1, LatLng point2) {
return SphericalLawOfCosines.sphericalLawOfCosinesDistance(point1, point2);
}