Function distHaversine

  • Parameters

    • location_a: any
    • location_b: any
    • sphere_radius: any

    Returns number

    Stability

    3 - stable

    Calculates the distance between two lat/long locations on a sphere as the crow flies.

    This function was adapted from https://stackoverflow.com/q/18883601/1541397

Generated using TypeDoc