@openhps/geospatial
    Preparing search index...

    Function closestPointOnPolygon

    • Finds the closest point on a polygon boundary.

      Parameters

      • point: Point2

        The query point

      • ring: readonly Point2[]

        The polygon ring

      Returns { distance: number; point: Point2 }

      The closest boundary point and its distance