Great-circle distance (Haversine) and bearing between two lat/lng points, with multi-leg path total.
Enter latitude / longitude for at least two points (decimal degrees; west / south are negative). Click Calculate to compute the great-circle distance for each pair (Haversine, Earth radius = 6371 km) plus the total for the whole path. Optionally enable bearing, which shows the initial compass direction from each start point to its destination, in degrees (0° = north, 90° = east). Use the sample button to verify: Beijing → Shanghai ≈ 1067 km.