Function dist_haversine

  • 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

    Parameters

    • location_a: any
    • location_b: any
    • sphere_radius: number = 1

    Returns number

Generated using TypeDoc