public void TestDistanceInMeters() { var positionOne = new Position(51.39082462, 6.050752777); var positionTwo = new Position(51.3904837, 6.04767631); Assert.AreEqual(GeoHelper.DistanceInMeters(positionOne.Latitude, positionOne.Longitude, positionTwo.Latitude, positionTwo.Longitude), 216.8); Assert.AreEqual(GeoHelper.DistanceInMeters(positionTwo.Latitude, positionTwo.Longitude, positionOne.Latitude, positionOne.Longitude), 216.8); Assert.AreEqual(GeoHelper.DistanceInMeters(positionOne.Latitude, positionOne.Longitude, positionTwo.Latitude, positionTwo.Longitude), GeoHelper.DistanceInMeters(positionTwo.Latitude, positionTwo.Longitude, positionOne.Latitude, positionOne.Longitude)); }