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

H3.Data

Description

This module collects the data types provided by the H3 API.

Synopsis

Documentation

data LatLng Source #

Latitude and longitude in radians

Constructors

LatLng 

Fields

Instances

Instances details
Storable LatLng Source # 
Instance details

Defined in H3.Internal.H3Api

Show LatLng Source # 
Instance details

Defined in H3.Internal.H3Api

Eq LatLng Source # 
Instance details

Defined in H3.Internal.H3Api

Methods

(==) :: LatLng -> LatLng -> Bool #

(/=) :: LatLng -> LatLng -> Bool #

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

type GeoLoop = [LatLng] Source #

A GeoLoop is defined as a list of LatLng in Haskell

data GeoPolygon Source #

A GeoPolygon has an exterior and interior holes, the exterior and each interior hole being a GeoLoop

Constructors

GeoPolygon GeoLoop [GeoLoop] 

Instances

Instances details
Show GeoPolygon Source # 
Instance details

Defined in H3.Internal.H3Api

Eq GeoPolygon Source # 
Instance details

Defined in H3.Internal.H3Api

data CoordIJ Source #

Hexagon coordinates

Constructors

CoordIJ Int Int 

Instances

Instances details
Storable CoordIJ Source # 
Instance details

Defined in H3.Internal.H3Api

Show CoordIJ Source # 
Instance details

Defined in H3.Internal.H3Api

Eq CoordIJ Source # 
Instance details

Defined in H3.Internal.H3Api

Methods

(==) :: CoordIJ -> CoordIJ -> Bool #

(/=) :: CoordIJ -> CoordIJ -> Bool #