equirectangularDistance method
Calculate the equirectangular approximation distance between two geographic points.
Given two geographic points point1
and point2
, this function calculates and returns the equirectangular approximation distance between these two points in meters.
Implementation
double equirectangularDistance(LatLng point1, LatLng point2) {
return EquirectangularApproximation.equirectangularDistance(point1, point2);
}