How wind, regulations, and more influence the routes that planes fly between cities.