Sdílet prostřednictvím


UnitConverters.CoordinatesToMiles(Double, Double, Double, Double) Method

Definition

Calulate the distance between two coordinate in miles

public static double CoordinatesToMiles (double lat1, double lon1, double lat2, double lon2);

Parameters

lat1
System.Double

First latitude

lon1
System.Double

First longitude

lat2
System.Double

Second latitude

lon2
System.Double

Second longitude

Returns

System.Double

Distance in miles

Applies to