CoordinateSharp v2.5.2.1 Release Notes

Release Date: 2020-05-05 // almost 4 years ago
    • ➕ Adds standard Parse() method to both Coordinate and CoordinatePart. This method works just like a standard C# Parse call and will throw exceptions upon failure. It is still recommend that you use TryParse() unless you can ensure coordinate string formatting is correct or you desire to handle your own exceptions.

      //Will parse successfullyCoordinate c = Coordinate.Parse("45N 43.456, 64E 25.694");

      //Will throw a format exception as Latitude has exceeded boundsCoordinate c = Coordinate.Parse("205N 43.456, 64E 25.694");

    • Adds last and next , sun/moon rise and set static methods. As CoordinateSharp operates on a "per day" basis you may not always have a celestial rise or set on a given day (especially during the spring months when working in UTC time). These new method will ensure a DateTime is always returned.

      DateTime d = new DateTime(2019, 2, 6);//Returns 2/7/2019 12:08:33 AM (the next day) as no moon set occurs on the date specified.var val = Celestial.Get_Next_MoonSet(40.0352, -74.5844, d);