gis-tools-ts - v0.6.0
    Preparing search index...

    Function llGetDistance

    • Returns the distance (measured along the surface of the sphere) to the given LonLat, implemented using the Haversine formula. This is equivalent to

      S1Angle(ToPoint(), o.ToPoint())

      except that this function is slightly faster, and is also somewhat less accurate for distances approaching 180 degrees (see s1angle.h for details). Both LngLats must be normalized.

      Parameters

      Returns number

      • distance in radians