true if lon is a valid longitude in the range -180..180
lon
static bool isValidLon(double lon) { return lon >= -180 && lon <= 180; }