Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module collects the data types provided by the H3 API.
Synopsis
- data LatLng = LatLng {}
- type H3Index = Word64
- data H3ErrorCodes
- type GeoLoop = [LatLng]
- data GeoPolygon = GeoPolygon GeoLoop [GeoLoop]
- data CoordIJ = CoordIJ Int Int
Documentation
Latitude and longitude in radians
Instances
Storable LatLng Source # | |
Show LatLng Source # | |
Eq LatLng Source # | |
type H3Index = Word64 Source #
H3Index is a type synonym for Word64, which we use as the numeric representation of the H3 index in Haskell
The C H3 error codes are modeled as a Haskell data type and instance of Enum
data H3ErrorCodes Source #
Instances
Enum H3ErrorCodes Source # | |
Defined in H3.Internal.H3Api succ :: H3ErrorCodes -> H3ErrorCodes # pred :: H3ErrorCodes -> H3ErrorCodes # toEnum :: Int -> H3ErrorCodes # fromEnum :: H3ErrorCodes -> Int # enumFrom :: H3ErrorCodes -> [H3ErrorCodes] # enumFromThen :: H3ErrorCodes -> H3ErrorCodes -> [H3ErrorCodes] # enumFromTo :: H3ErrorCodes -> H3ErrorCodes -> [H3ErrorCodes] # enumFromThenTo :: H3ErrorCodes -> H3ErrorCodes -> H3ErrorCodes -> [H3ErrorCodes] # | |
Show H3ErrorCodes Source # | |
Defined in H3.Internal.H3Api showsPrec :: Int -> H3ErrorCodes -> ShowS # show :: H3ErrorCodes -> String # showList :: [H3ErrorCodes] -> ShowS # | |
Eq H3ErrorCodes Source # | |
Defined in H3.Internal.H3Api (==) :: H3ErrorCodes -> H3ErrorCodes -> Bool # (/=) :: H3ErrorCodes -> H3ErrorCodes -> Bool # |
data GeoPolygon Source #
A GeoPolygon has an exterior and interior holes, the exterior and each interior hole being a GeoLoop
Instances
Show GeoPolygon Source # | |
Defined in H3.Internal.H3Api showsPrec :: Int -> GeoPolygon -> ShowS # show :: GeoPolygon -> String # showList :: [GeoPolygon] -> ShowS # | |
Eq GeoPolygon Source # | |
Defined in H3.Internal.H3Api (==) :: GeoPolygon -> GeoPolygon -> Bool # (/=) :: GeoPolygon -> GeoPolygon -> Bool # |
Hexagon coordinates
Instances
Storable CoordIJ Source # | |
Show CoordIJ Source # | |
Eq CoordIJ Source # | |