Method Haversin
Haversin(Double, Double, Double, Double)
Returns the distance in kilometers between two points specified in decimal degrees (latitude/longitude).
Declaration
public static double Haversin(double lat1, double lon1, double lat2, double lon2)
Parameters
Type | Name | Description |
---|---|---|
System.Double | lat1 | Latitude of the first point. |
System.Double | lon1 | Longitude of the first point. |
System.Double | lat2 | Latitude of the second point. |
System.Double | lon2 | Longitude of the second point. |
Returns
Type | Description |
---|---|
System.Double | distance in kilometers. |