The longest straight-line distance is from the northwest corner of the panhandle to the Rio Grande river just below Brownsville, 801 miles (1,289 km).