Get the vertices of a given hexagon (or pentagon), as an array of [lat, lng]points. For pentagons and hexagons on the edge of an icosahedron face, thisfunction may return up to 10 vertices.

h3_to_geo_boundary(h3Index, formatAsGeoJson = FALSE)

Arguments

h3Index

H3Index H3 index

formatAsGeoJson

Boolean Whether to provide GeoJSON output: [lng, lat], closed loops

Value

Array.<Array> - Array of [lat, lng] pairs