ip-devicer
    Preparing search index...

    Function haversineKm

    • Compute great-circle distance between two latitude/longitude coordinates.

      Uses the Haversine formula and returns the approximate surface distance in kilometers.

      Parameters

      • lat1: number
      • lon1: number
      • lat2: number
      • lon2: number

      Returns number