LocationExtensions.GetDistance method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Locations.Extensions
Assembly Skybrud.Essentials.dll

GetDistance(ILocation, ILocation)

Extension method

Calculates the distance in meters between two GPS locations.

public static double GetDistance(this ILocation loc1, ILocation loc2)

Parameters

loc1 ILocation

The first location.

loc2 ILocation

The second location.

Returns