Compute the shortest distance over Earth between two coordinates.
Uses the haversine formula with mean Earth radius 6371 km.