Difference (angle) between two bearings
问题 Using geosphere::bearing I can calculate the bearing of two lines, but is it possible to calculate the angle between the two bearings ? Of course you can try and subtract or sum up the bearings but in specific cases where one is negative and the other is positive this doesn't work. For example if the ber1 = - 175 and ber2 = 175 the angle between should be 10. Any suggestions ? 回答1: I am not sure of a ready-made package but in case you are interested in a solution then you can try angle_diff <