Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Vertex mode allows encoding the topological vertexes of H3 cells.
Synopsis
- cellToVertex :: H3Index -> Int -> Either H3ErrorCodes H3Index
- cellToVertexes :: H3Index -> Either H3ErrorCodes [H3Index]
- vertexToLatLng :: H3Index -> Either H3ErrorCodes LatLng
- isValidVertex :: H3Index -> Bool
Documentation
:: 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.