# GetDistance(Decimal, Decimal, Decimal, Decimal, 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 decimal GetDistance( decimal latitudeOrigin, decimal longitudeOrigin, decimal latitudeDestination, decimal longitudeDestination, MeasurementSystem measurementSystem = MeasurementSystem.Imperial ) ``` **F#** ``` F# static member GetDistance : latitudeOrigin : decimal * longitudeOrigin : decimal * latitudeDestination : decimal * longitudeDestination : decimal * ?measurementSystem : MeasurementSystem (* Defaults: let _measurementSystem = defaultArg measurementSystem MeasurementSystem.Imperial *) -> decimal ``` #### Parameters