Share via


UnitConverters.CoordinatesToKilometers(Double, Double, Double, Double) Method

Definition

Calulate the distance between two coordinate in kilometers

public static double CoordinatesToKilometers (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 kilometers

Applies to