Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
H3.Miscellaneous
Description
These methods in this module include
- general utilities to assist with activities such as unit conversions, and
- methods for retrieving key information about the H3 indexing system, such as pentagon cell ids, resolution 0 cells, etc.
Synopsis
- degsToRads :: Double -> Double
- radsToDegs :: Double -> Double
- getRes0Cells :: Either H3ErrorCodes [H3Index]
- getPentagons :: Int -> Either H3ErrorCodes [H3Index]
- getHexagonAreaAvgKm2 :: Int -> Either H3ErrorCodes Double
- getHexagonAreaAvgM2 :: Int -> Either H3ErrorCodes Double
- cellAreaRads2 :: H3Index -> Either H3ErrorCodes Double
- cellAreaKm2 :: H3Index -> Either H3ErrorCodes Double
- cellAreaM2 :: H3Index -> Either H3ErrorCodes Double
- getHexagonEdgeLengthAvgKm :: Int -> Either H3ErrorCodes Double
- getHexagonEdgeLengthAvgM :: Int -> Either H3ErrorCodes Double
- edgeLengthRads :: H3Index -> Either H3ErrorCodes Double
- edgeLengthKm :: H3Index -> Either H3ErrorCodes Double
- edgeLengthM :: H3Index -> Either H3ErrorCodes Double
- getNumCells :: Int -> Either H3ErrorCodes Int64
- greatCircleDistanceKm :: LatLng -> LatLng -> Double
- greatCircleDistanceM :: LatLng -> LatLng -> Double
- greatCircleDistanceRads :: LatLng -> LatLng -> Double
Documentation
degsToRads :: Double -> Double Source #
degsToRads converts from degrees to radians.
radsToDegs :: Double -> Double Source #
radsToDegs converts from radians to degrees
getRes0Cells :: Either H3ErrorCodes [H3Index] Source #
All the resolution 0 H3 cell indexes. These are the coarsest cells that can be represented in the H3 system and are the parents of all other cell indexes in the H3 grid system. The returned indexes correspond with the 122 base cells.
getPentagons :: Int -> Either H3ErrorCodes [H3Index] Source #
All the pentagon H3 indexes at the specified resolution.
getHexagonAreaAvgKm2 :: Int -> Either H3ErrorCodes Double Source #
Average hexagon area in square kilometers at the given resolution. Excludes pentagons.
getHexagonAreaAvgM2 :: Int -> Either H3ErrorCodes Double Source #
Average hexagon area in square meters at the given resolution. Excludes pentagons.
cellAreaRads2 :: H3Index -> Either H3ErrorCodes Double Source #
Exact area of specific cell in square radians.
cellAreaKm2 :: H3Index -> Either H3ErrorCodes Double Source #
Exact area of specific cell in square kilometers.
cellAreaM2 :: H3Index -> Either H3ErrorCodes Double Source #
Exact area of specific cell in square meters.
getHexagonEdgeLengthAvgKm :: Int -> Either H3ErrorCodes Double Source #
Average hexagon edge length in kilometers at the given resolution. Excludes pentagons.
getHexagonEdgeLengthAvgM :: Int -> Either H3ErrorCodes Double Source #
Average hexagon edge length in meters at the given resolution. Excludes pentagons.
edgeLengthRads :: H3Index -> Either H3ErrorCodes Double Source #
Exact edge length of specific unidirectional edge in radians.
edgeLengthKm :: H3Index -> Either H3ErrorCodes Double Source #
Exact edge length of specific unidirectional edge in kilometers.
edgeLengthM :: H3Index -> Either H3ErrorCodes Double Source #
Exact edge length of specific unidirectional edge in meters.
getNumCells :: Int -> Either H3ErrorCodes Int64 Source #
Number of unique H3 indexes at the given resolution.
greatCircleDistanceKm :: LatLng -> LatLng -> Double Source #
Gives the "great circle" or "haversine" distance between pairs of LatLng points (lat/lng pairs) in kilometers.