Geodesics and rhumb lines
The shortest path between any two points, antipodes included, with its azimuths, points along it and the area under it: Karney's algorithms, good to 15 nm. Rhumb lines hold one compass course.
let r = geodesy.inverse(14.5995, 120.9842, 10.3157, 123.8854) print(r.distance) // 569218.2057… m (Manila to Cebu) let (s, azimuth) = geodesy.rhumb(14.5995, 120.9842, 34.0522, -118.2437)