Function distHaversineEarth

  • Parameters

    • location_a: any
    • location_b: any

    Returns number

    Stability

    3 - stable

    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.

Generated using TypeDoc