GPoint point = new GPoint(47.6097, -122.3331);
GPoint point = new GPoint(); point.Lat = 40.7128; point.Lng = -74.0060;
GPoint point1 = new GPoint(47.6097, -122.3331); GPoint point2 = new GPoint(37.7749, -122.4194); double distance = point1.GetDistance(point2);This creates two GPoint objects representing the locations of Seattle, WA and San Francisco, CA. We then use the GetDistance method to calculate the distance between the two points in kilometers. The GPoint class is part of the GMap.NET package library, which is a powerful open source mapping control for .NET developers. It provides a variety of features for creating and interacting with maps, including support for multiple map providers, marker customization, and route calculation.