问题 I am attempting to calculate the bearing between two lat/long. I don't have a question regarding the function/formula per se, provided: def get_bearing(lat1, long1, lat2, long2): dLon = (long2 - long1) y = math.sin(dLon) * math.cos(lat2) x = math.cos(lat1) * math.sin(lat2) - math.sin(lat1) * math.cos(lat2) * math.cos(dLon) brng = math.atan2(y, x) brng = np.rad2deg(brng) return brng the problem is that the result isn't what is expected. The intended usage of the function returns the bearing