Get all hexagons with centers contained in a given polygon. The polygonis specified with GeoJson semantics as an array of loops. Each loop isan array of [lat, lng] pairs (or [lng, lat] if isGeoJson is specified).The first loop is the perimeter of the polygon, and subsequent loops areexpected to be holes.

h3_polyfill(coordinates, res, isGeoJson = FALSE)

Arguments

coordinates

Array.<Array> Array of loops, or a single loop

res

Number Resolution of hexagons to return

isGeoJson

Boolean Whether to expect GeoJson-style [lng, lat] pairs instead of [lat, lng]

Value

Array.<H3Index> - H3 indexes for all hexagons in polygon