Class GeoUtils
Provides static utility methods related to geography.
public static class GeoUtils
- Inheritance
-
GeoUtils
- Inherited Members
Methods
GreatCircleDistance(double, double, double, double)
Gets the great circle distance between two locations.
public static double GreatCircleDistance(double lat1, double lon1, double lat2, double lon2)
Parameters
lat1double- The latitude of the first location.
lon1double- The longitude of the first location.
lat2double- The latitude of the second location.
lon2double- The longitude of the second location.
Returns
- double
- The great circle distance between the two locations in radians.