Checks if the provided latitude (in decimal degrees) is valid.
true - if the latitude is valid, false - if the latitude is invalid
The valid latitude is a real number in the range from -90 to 90.
This sample shows how to call the Geodetic.Latitude.IsValidLatitudeInDeg method from C# code:
string errorMessage = String.Empty;
double latitudeInDeg = 78.5;
if (Geodetic.Latitude.IsValidLatitudeInDeg(latitudeInDeg, out errorMessage))
{
Console.WriteLine("Latitude is valid.");
}
else
{
Console.WriteLine(errorMessage);
}