Checks if the provided latitude (in decimal degrees) is valid.
true - if the latitude is valid, false - if it is invalid
The valid latitude is a real number in the range from -90.0 (inclusive) to 90.0 (inclusive).
This sample shows how to call the ApsNadcon.IsValidLatitude method from C# code:
double latInDeg = 45.13;
string errorMessage = String.Empty;
if (ApsNadcon.IsValidLatitude(latInDeg, out errorMessage))
{
Console.WriteLine("Latitude is valid.");
}
else
{
Console.WriteLine(errorMessage);
}
ApsNadcon Class | ApsNadcon Namespace