hammerspoon2-docs
    Preparing search index...

    Function distance

    • Calculates the straight-line distance in metres between two locationTables. Does not require Location Services.

      Parameters

      • from: Record<string, number>

        locationTable with at least latitude and longitude

      • to: Record<string, number>

        locationTable with at least latitude and longitude

      Returns number

      distance in metres, or -1 if either table is invalid