coordinate-0.0.10: A representation of latitude and longitude

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Geo.Coordinate.Coordinate

Synopsis

Documentation

(.#.) :: Latitude -> Longitude -> Coordinate Source

Build a coordinate from a latitude and longitude.

(<°>) :: Double -> Double -> Maybe Coordinate Source

Build a coordinate from a fractional latitude and fractional longitude. Fails if either are out of range.

(<㎭>) :: Double -> Double -> Maybe Coordinate Source

Build a coordinate from a radian latitude and fractional longitude. Fails if either are out of range.

fracCoordinate :: Prism' (Double, Double) Coordinate Source

A prism on the pair (below) to a coordinate:

  • a fractional latitude to a double between -90 and 90 exclusive.
  • a fractional longitude to a double between -180 and 180 exclusive.

radianCoordinate :: Prism' (Double, Double) Coordinate Source

A prism on the pair (below) to a coordinate:

  • a radian latitude to a double between -π2 and π2 exclusive.
  • a radian longitude to a double between -π and π exclusive.