h3-hs-0.2.0.0: A Haskell binding for H3
Safe HaskellSafe-Inferred
LanguageHaskell2010

H3.Vertexes

Description

Vertex mode allows encoding the topological vertexes of H3 cells.

Synopsis

Documentation

cellToVertex Source #

Arguments

:: H3Index

origin

-> Int

vertexNum

-> Either H3ErrorCodes H3Index 

Returns the index for the specified cell vertex and vertex number. Valid vertex numbers are between 0 and 5 (inclusive) for hexagonal cells, and 0 and 4 (inclusive) for pentagonal cells.

cellToVertexes :: H3Index -> Either H3ErrorCodes [H3Index] Source #

Returns the indexes for all vertexes of the given cell index. The length of the returned list is 6. If the given cell index represents a pentagon, one member of the list will be set to 0.

vertexToLatLng :: H3Index -> Either H3ErrorCodes LatLng Source #

Returns the latitude and longitude coordinates of the given vertex.

isValidVertex :: H3Index -> Bool Source #

Returns True if the given index represents a valid H3 vertex.