geoPointValid static method
Checks if the coordinates of a GeopPoint are valid geo coordinates.
latitude
The latitude must be in the range -90, 90
longitude
The longitude must be in the range -180, 180
returns true
if these are valid geo coordinates
Implementation
static bool geoPointValid(GeoPoint point) {
return (point.latitude >= -90 &&
point.latitude <= 90 &&
point.longitude >= -180 &&
point.longitude <= 180);
}