Function distHaversineEarth

  • Calculates the distance between two lat/long locations on Earth as the crow flies.

    The Earth is taken to be a perfect sphere of radius 6371km, and the returned distance is in kilometers.

    Parameters

    • location_a: any
    • location_b: any

    Returns number

Generated using TypeDoc