Correct lat/lon bounds checking.