haversinSortKey

fun haversinSortKey(lat1: Double, lon1: Double, lat2: Double, lon2: Double): Double

Returns a sort key for distance. This is less expensive to compute than .haversinMeters, but it always compares the same. This can be converted into an actual distance with .haversinMeters, which effectively does the second half of the computation.