https://learn.microsoft.com/cs-cz/dotnet/api/system.device.location.geocoordinate.getdistanceto?view=netframework-4.8.1
GeoCoordinate.GetDistanceTo(GeoCoordinate) Method (System.Device.Location) | Microsoft Learn
Returns the distance between the latitude and longitude coordinates that are specified by this GeoCoordinate and another specified GeoCoordinate.
system devicemethodlocationmicrosoftlearn