@squawk
    Preparing search index...
    • Tests whether a point lies inside a polygon, treating the first ring as the outer boundary and any subsequent rings as holes (a point inside a hole is outside the polygon).

      Standard ray-casting algorithm: count edge crossings on a horizontal ray to the right of the point. Behavior on a boundary vertex is algorithm-dependent and not specified.

      Parameters

      • point: readonly [number, number]

        Test point as [lon, lat].

      • polygon: Polygon

        GeoJSON Polygon.

      Returns boolean

      true when the point is inside the outer ring and not inside any hole.