Coordinate coord = new Coordinate(10, 20);
Coordinate coord1 = new Coordinate(10, 20); Coordinate coord2 = new Coordinate(30, 40); double distance = Coordinate.Distance(coord1, coord2);This code calculates the distance between two coordinates using the static Distance method of the Coordinate class. Package library: This class is part of the GeoAPI.NET package library.