true if lat is a valid latitude in the range -90..90
lat
static bool isValidLat(double lat) { return lat >= -90 && lat <= 90; }