LocationUtils.GetDistance method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Locations |
---|---|
Assembly | Skybrud.Essentials.dll |
GetDistance(IPoint, IPoint)
Static
Calculates the distance in meters between two GPS locations.
public static double GetDistance(IPoint loc1, IPoint loc2)
Returns
The distance in meters between the two locations.
GetDistance(double, double, double, double)
Static
Calculates the distance in meters between two GPS locations.
public static double GetDistance(double lat1, double lng1, double lat2, double lng2)
Parameters
lat1
Double
The latitude of the first location.
lng1
Double
The longitude of the first location.
lat2
Double
The latitude of the second location.
lng2
Double
The longitude of the second location.
Returns
The distance in meters between the two locations.