# GetDistance(Double, Double, Double, Double, MeasurementSystem) Method Gets the distance between two points on earth using the `haversine` formula. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2 **C#** ``` C# public static double GetDistance( double latitudeOrigin, double longitudeOrigin, double latitudeDestination, double longitudeDestination, MeasurementSystem measurementSystem = MeasurementSystem.Imperial ) ``` **F#** ``` F# static member GetDistance : latitudeOrigin : float * longitudeOrigin : float * latitudeDestination : float * longitudeDestination : float * ?measurementSystem : MeasurementSystem (* Defaults: let _measurementSystem = defaultArg measurementSystem MeasurementSystem.Imperial *) -> float ``` #### Parameters