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

    Function angleFromLonLat

    • Like the constructor above, but return the angle (i.e., distance) between two S2LatLng points. This function has about 15 digits of accuracy for small distances but only about 8 digits of accuracy as the distance approaches 180 degrees (i.e., nearly-antipodal points).

      Parameters

      • a: LonLat

        The first lon-lat pair

      • b: LonLat

        The second lon-lat pair

      Returns number

      • The angle between the two points in radians