Trim latitude/longitude so it's within valid range