| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Geo.Coordinate.Coordinate
- data Coordinate
- (.#.) :: Latitude -> Longitude -> Coordinate
- (<°>) :: Double -> Double -> Maybe Coordinate
- (<㎭>) :: Double -> Double -> Maybe Coordinate
- fracCoordinate :: Prism' (Double, Double) Coordinate
- radianCoordinate :: Prism' (Double, Double) Coordinate
- class HasCoordinate t where
- coordinate :: Lens' t Coordinate
- coordinateLatLon :: Iso' (Latitude, Longitude) Coordinate
- coordinateLonLat :: Iso' (Longitude, Latitude) Coordinate
- coordinateDMSLatLon :: Iso' ((DegreesLatitude, Minutes, Seconds), Longitude) Coordinate
- coordinateLatDMSLon :: Iso' (Latitude, (DegreesLongitude, Minutes, Seconds)) Coordinate
- coordinateDMSLatDMSLon :: Iso' ((DegreesLatitude, Minutes, Seconds), (DegreesLongitude, Minutes, Seconds)) Coordinate
Documentation
data Coordinate Source
(.#.) :: 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.